|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.javax.sip.stack.DefaultRouter
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. Use this for UAC/UAS implementations and use the ProxyRouter for proxies.
Constructor Summary | |
DefaultRouter(SipStack sipStack,
String defaultRoute)
Constructor. |
|
DefaultRouter(SIPStack sipStack,
String defaultRoute)
Constructor given SIPStack as an argument (this is only for the protocol tester. |
Method Summary | |
Hop |
getDefaultRoute()
Get the default route (does the same thing as getOutboundProxy). |
ListIterator |
getNextHops(Request request)
Return addresses for default proxy to forward the request to. |
Hop |
getOutboundProxy()
Get the default hop. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultRouter(SipStack sipStack, String defaultRoute)
public DefaultRouter(SIPStack sipStack, String defaultRoute)
Method Detail |
public ListIterator getNextHops(Request request)
getNextHops
in interface Router
request
- - the Request message that determines the default route.
Hop
public Hop getOutboundProxy()
getOutboundProxy
in interface Router
Hop
public Hop getDefaultRoute()
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |