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

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.

Version:
1.2
Author:
BEA Systems, NIST
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

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

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

Returns:
the string value of the transport.

toString

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

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

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.