| |
|
| java.lang.Object gov.nist.siplite.stack.DefaultRouter
DefaultRouter | public class DefaultRouter implements Router(Code) | | This is the default router. When the implementation wants to forward
a request and had run out of othe options, then it calls this method
to figure out where to send the request. The default router implements
a simple "default routing algorithm" which just forwards to the configured
proxy address.
|
defaultRoute | protected Hop defaultRoute(Code) | | Default route.
|
DefaultRouter | public DefaultRouter()(Code) | | Default constructor.
|
getNextHops | public Enumeration getNextHops(Request sipRequest, boolean isDialog) throws IllegalArgumentException(Code) | | Return a linked list of addresses corresponding to a requestURI.
This is called for sending out outbound messages for which we do
not directly have the request URI. The implementaion function
is expected to return a linked list of addresses to which the
request is forwarded. The implementation may use this method
to perform location searches etc.
Parameters: sipRequest - is the message to route. Parameters: isDialog - target URI is taken from route list inside of dialog,else it is taken from request URI enumeration of next hops |
getOutboundProxy | public Hop getOutboundProxy()(Code) | | Gets the default hop.
defaultRoute is the default route. |
setNextHop | public void setNextHop(String hopString) throws IllegalArgumentException(Code) | | Sets the next hop address.
Parameters: hopString - is a string which is interpretedby us in the following fashion :host:port/TRANSPORT determines the next hop. |
setOutboundProxy | public void setOutboundProxy(String outboundProxy)(Code) | | Sets the outbound proxy.
Parameters: outboundProxy - the new proxy location |
setSipStack | public void setSipStack(SipStack sipStack)(Code) | | Sets the SIP stack context.
Parameters: sipStack - the new SIP stack |
|
|
|