JAIN SIP API
v1.1 - 23rd June 2003

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.

Since:
1.1
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

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

Returns:
the string value of the host.

getPort

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

Returns:
the integer value of the port.

getTransport

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

Returns:
the string value of the transport.

toString

public 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

JAIN SIP API
v1.1 - 23rd June 2003

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing to the
JAIN-SIP-Interest list at http://archives.java.sun.com
Copyright - 2003 Sun Microsystems