org.lastbamboo.common.sip.proxy
Class LocationServiceChain

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

public final class LocationServiceChain
extends Object
implements LocationService

A chain of location services, any one of which might handle a particular URI.


Constructor Summary
LocationServiceChain(Collection services)
          Constructs a new location service chain.
 
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

LocationServiceChain

public LocationServiceChain(Collection services)
Constructs a new location service chain.

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.