|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonathan.apis.protocols.ip.IpSessionIdentifier
IpSessionIdentifier is a specific
SessionIdentifier
type for IP protocols. An IP session identifier contains
a host name, and a port
number.
Field Summary | |
java.lang.String |
hostname
Hostname of this session identifier. |
int |
port
Port number of this session identifier. |
Fields inherited from interface org.objectweb.jonathan.apis.protocols.ProtocolIdentifiers |
GIOP, HTTP, MULTICASTIP, MULTIPLEX, RTP, TCPIP |
Constructor Summary | |
IpSessionIdentifier()
Constructs a new empty IpSessionIdentifier. |
|
IpSessionIdentifier(java.lang.String hostname,
int port)
Constructs a new IpSessionIdentifier with the specified host name and port number. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Compares this object to the specified object. |
int |
getProtocolId()
What kind of protocol does this session identifier relate to? |
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. |
java.lang.String |
toString()
Returns a string representation of this session identifier. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.jonathan.apis.protocols.SessionIdentifier |
bind, getInfo, getProtocol, isLocal, unexport |
Field Detail |
public java.lang.String hostname
public int port
Constructor Detail |
public IpSessionIdentifier(java.lang.String hostname, int port)
hostname
- a host name;port
- a port number;public IpSessionIdentifier()
Method Detail |
public int hashCode()
public boolean equals(java.lang.Object o)
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.
public java.lang.String toString()
public SessionIdentifier[] next()
next
in interface SessionIdentifier
public final int getProtocolId()
SessionIdentifier
getProtocolId
in interface SessionIdentifier
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |