|
||||||||||
| 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
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.
| 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()
hashCode in class java.lang.Objectpublic 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.
equals in class java.lang.Objecto - the object to compare with.
public java.lang.String toString()
toString in class java.lang.Objectpublic SessionIdentifier[] next()
next in interface SessionIdentifierpublic final int getProtocolId()
SessionIdentifier
getProtocolId in interface SessionIdentifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||