Modifier and Type | Field and Description |
---|---|
protected HopImpl |
defaultRoute |
protected SipStack |
myStack |
Constructor and Description |
---|
MyRouter(SipStack sipStack,
String nextHop) |
Modifier and Type | Method and Description |
---|---|
Hop |
getNextHop(Request request)
Gets the next Hop from this Router for the specified request, this
method may return
null if a default route is not defined. |
ListIterator |
getNextHops(Request sipRequest)
Always send requests to the default route location.
|
Hop |
getOutboundProxy()
Gets the Outbound Proxy parameter of this Router, this method may return
null if no outbound proxy is defined.
|
public ListIterator getNextHops(Request sipRequest)
getNextHops
in interface Router
public Hop getOutboundProxy()
Router
getOutboundProxy
in interface Router
Hop
public Hop getNextHop(Request request) throws SipException
Router
null
if a default route is not defined.getNextHop
in interface Router
SipException
- when there is something wrong with the requestHop
Copyright © 2018. All Rights Reserved.