|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
LocationService is the interface used by a SIP registrar to access to a location repository.
A LocationService allows the maintinance of bindings between users and contacts.
For each user the LocationService should maintain information regarding:
- username, that is a fully qualified name for this service (e.g. alice@wonderland.net)
- data, that is an opaque block of data (a string),
that can be set and fetched for any service-depending use,
- contacts/expires, that is the list of user contacts with the time when it expires,
LocationService has a set of methods for query and modifing such data.
Some of these methods include an optional parameter app that could be used to implement application-dependent mobility, i.e. lists of contacts that are specific for particular applications. This feature might be used by guessing the application by the SIP body (e.g. SDP) or by a new non-standard Application header (ref. [draft-XX.txt])
| Method Summary | |
LocationService |
addUserContact(java.lang.String user,
org.zoolu.sip.address.NameAddress contact,
java.util.Date expire)
Adds a contact. |
java.util.Date |
getUserContactExpirationDate(java.lang.String user,
java.lang.String url)
Gets expiration date of the user contact. |
org.zoolu.sip.address.NameAddress |
getUserContactNameAddress(java.lang.String user,
java.lang.String url)
Gets NameAddress value of the user contact. |
java.util.Enumeration |
getUserContactURLs(java.lang.String user)
Gets the user contacts that are not expired. |
boolean |
hasUserContact(java.lang.String user,
java.lang.String url)
Whether the user has contact url. |
boolean |
isUserContactExpired(java.lang.String user,
java.lang.String url)
Whether the contact is expired. |
LocationService |
removeAllContacts()
Removes all contacts from the database. |
LocationService |
removeUserContact(java.lang.String user,
java.lang.String url)
Removes a contact. |
| Methods inherited from interface local.server.Repository |
addUser, getUsers, hasUser, removeAllUsers, removeUser, size, sync, toString |
| Method Detail |
public boolean hasUserContact(java.lang.String user,
java.lang.String url)
user - the user nameurl - the contact URL
public LocationService addUserContact(java.lang.String user,
org.zoolu.sip.address.NameAddress contact,
java.util.Date expire)
user - the user namecontact - the contact NameAddressexpire - the contact expire Datepublic java.util.Enumeration getUserContactURLs(java.lang.String user)
user - the user name
public LocationService removeUserContact(java.lang.String user,
java.lang.String url)
user - the user nameurl - the contact URL
public org.zoolu.sip.address.NameAddress getUserContactNameAddress(java.lang.String user,
java.lang.String url)
user - the user nameurl - the contact URL
public java.util.Date getUserContactExpirationDate(java.lang.String user,
java.lang.String url)
user - the user nameurl - the contact URL
public boolean isUserContactExpired(java.lang.String user,
java.lang.String url)
user - the user nameurl - the contact URLpublic LocationService removeAllContacts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||