NIST SIP Parser and Stack (v1.2) API

javax.sip.address
Interface Hop

All Known Implementing Classes:
HopImpl

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
Author:
Sun Microsystems
See Also:
Router

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

Method Detail

getHost

public 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 String getTransport()
Returns the transport part of this Hop.

Returns:
the string value of the transport.

toString

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

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

NIST SIP Parser and Stack (v1.2) API

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