FileDocCategorySizeDatePackage
Router.javaAPI DocphoneME MR2 API (J2ME)2422Wed May 02 18:00:42 BST 2007gov.nist.siplite.address

Router

public interface Router
Path for outbound message routing.

Fields Summary
Constructors Summary
Methods Summary
public java.util.EnumerationgetNextHops(Request sipRequest, boolean isDialog)
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.

param
sipRequest is the message to route.
param
isDialog target URI is taken from route list inside of dialog, else it is taken from request URI
return
enumeration of next hops

public HopgetOutboundProxy()
Gets the outbound proxy.

return
the outbounc proxy address

public voidsetOutboundProxy(java.lang.String outboundProxy)
Sets the outbound proxy.

param
outboundProxy the outbound proxy address

public voidsetSipStack(SipStack sipStack)
Sets the sip stack.

param
sipStack the SIP stack context