|
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.HopImpl
Routing algorithms return a list of hops to which the request is routed.
Constructor Summary | |
HopImpl(String hop)
Creates new Hop |
|
HopImpl(String hostName,
int portNumber,
String trans)
Create new hop given host, port and transport. |
Method Summary | |
String |
getHost()
Retruns the host string. |
int |
getPort()
Returns the port. |
String |
getTransport()
returns the transport string. |
boolean |
isDefaultRoute()
Return true if this is a default route (ie. next hop proxy address) |
boolean |
isExplicitRoute()
Return true if this is an explicit route (ie. extrcted from a ROUTE Header) |
boolean |
isURIRoute()
Return true if this is uriRoute |
void |
setDefaultRouteFlag()
Set the defaultRouteFlag. |
void |
setExplicitRouteFlag()
Set the explicitRoute flag. |
void |
setURIRouteFlag()
Set the URIRoute flag. |
String |
toString()
Debugging println. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HopImpl(String hostName, int portNumber, String trans)
hostName
- hostnameportNumber
- porttrans
- transportpublic HopImpl(String hop) throws IllegalArgumentException
hop
- is a hop string in the form of host:port/Transport
IllegalArgument
- exception if string is not properly formatted or
null.
IllegalArgumentException
Method Detail |
public String toString()
toString
in interface Hop
toString
in class Object
public String getHost()
getHost
in interface Hop
public int getPort()
getPort
in interface Hop
public String getTransport()
getTransport
in interface Hop
public boolean isExplicitRoute()
public boolean isDefaultRoute()
public boolean isURIRoute()
public void setURIRouteFlag()
public void setDefaultRouteFlag()
public void setExplicitRouteFlag()
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |