public abstract class IpSessionIdentifier extends Object implements SessionIdentifier, ProtocolIdentifiers
SessionIdentifier
type for IP protocols. An IP session identifier contains
a host name, and a port
number.Modifier and Type | Field and Description |
---|---|
String |
hostname
Hostname of this session identifier.
|
int |
port
Port number of this session identifier.
|
GIOP, HTTP, MULTICASTIP, MULTIPLEX, RTP, TCPIP
Constructor and Description |
---|
IpSessionIdentifier()
Constructs a new empty IpSessionIdentifier.
|
IpSessionIdentifier(String hostname,
int port)
Constructs a new IpSessionIdentifier with the specified host name and port
number.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
String |
toString()
Returns a string representation of this session identifier.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
bind, getInfo, getProtocol, isLocal, unexport
public String hostname
public int port
public IpSessionIdentifier(String hostname, int port)
hostname
- a host name;port
- a port number;public IpSessionIdentifier()
public int hashCode()
public boolean equals(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 String toString()
public SessionIdentifier[] next()
next
in interface SessionIdentifier
public final int getProtocolId()
SessionIdentifier
getProtocolId
in interface SessionIdentifier