org.objectweb.jonathan.protocols.ip.api
Class IpSessionIdentifier
- ProtocolIdentifiers, SessionIdentifier
public abstract class IpSessionIdentifier
IpSessionIdentifier is a specific
SessionIdentifier
type for IP protocols. An IP session identifier contains
a host name, and a port
number.
String | hostname - Hostname of this session identifier.
|
int | port - Port number of this session identifier.
|
IpSessionIdentifier() - Constructs a new empty IpSessionIdentifier.
|
IpSessionIdentifier(String hostname, int port) - Constructs a new IpSessionIdentifier with the specified host name and port
number.
|
boolean | equals(Object o) - Compares this object to the specified object.
|
int | getProtocolId()
|
int | hashCode() - Returns a hash code value for this IpSessionIdentifier.
|
SessionIdentifier[] | next() - Return an empty array: this is a leaf protocol in the protocol
tree.
|
String | toString() - Returns a string representation of this session identifier.
|
hostname
public String hostname
Hostname of this session identifier.
port
public int port
Port number of this session identifier.
IpSessionIdentifier
public IpSessionIdentifier()
Constructs a new empty IpSessionIdentifier.
IpSessionIdentifier
public IpSessionIdentifier(String hostname,
int port)
Constructs a new IpSessionIdentifier with the specified host name and port
number.
hostname
- a host name;port
- a port number;
equals
public boolean equals(Object o)
Compares this object to the specified object.
The result is true if and only if the argument is not null and is a
IpSessionIdentifier object that has the same host name and port number.
- true if the objects are the same; false otherwise.
hashCode
public int hashCode()
Returns a hash code value for this IpSessionIdentifier.
- a hash code value for this object.
toString
public String toString()
Returns a string representation of this session identifier.
- a string representation of this session identifier.