NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.stack
Class HopImpl

java.lang.Object
  extended by gov.nist.javax.sip.stack.HopImpl
All Implemented Interfaces:
Serializable, Hop

public final class HopImpl
extends Object
implements Hop, Serializable

Routing algorithms return a list of hops to which the request is routed.

Version:
1.2 $Revision: 1.11 $ $Date: 2009/07/17 18:58:13 $
Author:
M. Ranganathan
See Also:
Serialized Form

Constructor Summary
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 isURIRoute()
          Return true if this is uriRoute
 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

HopImpl

public HopImpl(String hostName,
               int portNumber,
               String trans)
Create new hop given host, port and transport.

Parameters:
hostName - hostname
portNumber - port
trans - transport
Method Detail

toString

public String toString()
Debugging println.

Specified by:
toString in interface Hop
Overrides:
toString in class Object
Returns:
the stringified version of the Hop

getHost

public String getHost()
Retruns the host string.

Specified by:
getHost in interface Hop
Returns:
host String

getPort

public int getPort()
Returns the port.

Specified by:
getPort in interface Hop
Returns:
port integer.

getTransport

public String getTransport()
returns the transport string.

Specified by:
getTransport in interface Hop
Returns:
the string value of the transport.

isURIRoute

public boolean isURIRoute()
Return true if this is uriRoute


setURIRouteFlag

public void setURIRouteFlag()
Set the URIRoute flag.


NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.