|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Router interface defines accessor methods to retrieve the default Route
and Outbound Proxy of this SipStack. The Outbound Proxy and default Route are
made up one or more Hop
's. This Router information is user-defined in
an object that implements this interface. The location of the user-defined
Router object is supplied in the Properties object passed to the
SipFactory.createSipStack(Properties)
method upon creation
of the SIP Stack object.
The Router object must accept a SipStack as an argument to the constructor in
order for the Router to access attributes of the SipStack such as IP Address.
The constructor of an object implementing the Router interface must be
RouterImpl(SipStack sipStack, String outboundProxy) {}
The user may define a routing policy dependent on the operation of the SipStack i.e. user agent or proxy, however this routing policy can not be changed dynamically, i.e. the SipStack needs to be deleted and re-created.
Method Summary | |
ListIterator |
getNextHops(Request request)
Gets the ListIterator of the hops of the default Route. |
Hop |
getOutboundProxy()
Gets the Outbound Proxy parameter of this Router, this method may return null if no outbound proxy is defined. |
Method Detail |
public Hop getOutboundProxy()
Hop
public ListIterator getNextHops(Request request)
request
- - the Request message that determines the default route.
Hop
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |