|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.services.sip.location.cache.LocationService
public class LocationService
Keeps track of mappings between User Agent SIP addresses and location bindings such as IP address This class acts as backend storage for this implementation of registrar service. Constructor has package access, so noone can ceaete instance of this class and mess up bindings, only Registrar class should do this.
| Constructor Summary | |
|---|---|
LocationService()
|
|
| Method Summary | |
|---|---|
void |
addBinding(java.lang.String sipAddress,
RegistrationBinding binding)
|
java.util.Map |
getBindings(java.lang.String sipAddress)
Return copy of map containing registration bindings |
java.util.Set |
getRegistered()
Returns set of sip addresses of registered users. |
void |
removeBinding(java.lang.String sipAddress,
java.lang.String sipContact)
|
void |
setBindings(java.lang.String sipAddress,
java.util.Map bindings)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationService()
| Method Detail |
|---|
public java.util.Map getBindings(java.lang.String sipAddress)
throws LocationServiceException
sipAddress - -
address for which we want to retrieve bindings
LocationServiceException
public void setBindings(java.lang.String sipAddress,
java.util.Map bindings)
throws LocationServiceException
sipAddress - bindings -
LocationServiceException
public void addBinding(java.lang.String sipAddress,
RegistrationBinding binding)
throws LocationServiceException
sipAddress - -
sip address for which binding will be addedbinding - -
bindings to be added for ueser
LocationServiceException - -
thrown when backend storage fails in some manner
public void removeBinding(java.lang.String sipAddress,
java.lang.String sipContact)
throws LocationServiceException
sipAddress - -
user for which we will perform remove.sipContact - -
contact address that will be removed for this user
LocationServiceException - -
thrown when backend storage fails in some mannerpublic java.util.Set getRegistered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||