| 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 Routerpublic Hop getOutboundProxy()
RoutergetOutboundProxy in interface RouterHoppublic Hop getNextHop(Request request) throws SipException
Routernull if a default route is not defined.getNextHop in interface RouterSipException - when there is something wrong with the requestHopCopyright © 2014. All Rights Reserved.