org.lastbamboo.common.sip.proxy
Class LastBambooLocationService

java.lang.Object
  extended by org.lastbamboo.common.sip.proxy.LastBambooLocationService
All Implemented Interfaces:
LocationService

public final class LastBambooLocationService
extends Object
implements LocationService

A location service for dealing with Last Bamboo SIP URIs.


Constructor Summary
LastBambooLocationService(org.lastbamboo.common.sip.stack.util.UriUtils uriUtils)
          Constructs a new location service.
 
Method Summary
 boolean canHandle(URI requestUri)
          Returns whether this location service can handle a request URI.
 Collection getTargetSet(URI requestUri)
          Returns a target set (URIs) for a given request URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastBambooLocationService

public LastBambooLocationService(org.lastbamboo.common.sip.stack.util.UriUtils uriUtils)
Constructs a new location service.

Parameters:
uriUtils - URI utilities.
idToProxies - The mapping from Last Bamboo SIP URIs to the SIP proxies with which they are registered.
Method Detail

canHandle

public boolean canHandle(URI requestUri)
Returns whether this location service can handle a request URI.

Specified by:
canHandle in interface LocationService
Parameters:
requestUri - The request URI that this location service could potentially handle.
Returns:
True if this location service can handle the given request URI.

getTargetSet

public Collection getTargetSet(URI requestUri)
Returns a target set (URIs) for a given request URI.

Specified by:
getTargetSet in interface LocationService
Parameters:
requestUri - The request URI for which to return a target set.
Returns:
A target set (URIs) for a given request URI.


Copyright © 2013 LittleShoot. All Rights Reserved.