JSIP API v1.2
November 2006

javax.sip.address
Interface Hop


public interface Hop

The Hop interface defines a location a request can transit on the way to its destination, i.e. a route. It defines the host, port and transport of the location. This interface is used to identify locations in the Router interface.

Author:
BEA Systems, NIST
See Also:
Router

Method Summary
 java.lang.String getHost()
          Returns the host part of this Hop.
 int getPort()
          Returns the port part of this Hop.
 java.lang.String getTransport()
          Returns the transport part of this Hop.
 java.lang.String toString()
          This method returns the Hop as a string.
 

Method Detail

getHost

java.lang.String getHost()
Returns the host part of this Hop.

Returns:
the string value of the host.

getPort

int getPort()
Returns the port part of this Hop.

Returns:
the integer value of the port.

getTransport

java.lang.String getTransport()
Returns the transport part of this Hop.

Returns:
the string value of the transport.

toString

java.lang.String toString()
This method returns the Hop as a string.

Overrides:
toString in class java.lang.Object
Returns:
the stringified version of the Hop

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems