|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwcsckernel.projectbase.rmi.socketfactory.EndpointInfo
public class EndpointInfo
Stores information about socket endpoint (address/port pair).
Constructor Summary | |
---|---|
EndpointInfo(java.lang.String host,
int port)
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
getAddressString(byte[] address)
Utility method to convert an IP address to a string. |
static java.lang.String |
getEndpointString(byte[] address,
int port)
Utility method for creating an endpoint string of the form address:port. |
static java.lang.String |
getEndpointString(java.lang.String address,
int port)
Utility method for creating an endpoint string of the form address:port. |
java.lang.String |
getHost()
|
int |
getPort()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EndpointInfo(java.lang.String host, int port)
Method Detail |
---|
public static java.lang.String getEndpointString(java.lang.String address, int port)
address
- The address part of the endpoint string.port
- The port part of the endpoint string.
public static java.lang.String getEndpointString(byte[] address, int port)
address
- The address part of the endpoint string.port
- The port part of the endpoint string.
public static java.lang.String getAddressString(byte[] address)
address
- The four bytes of an IP address.
public java.lang.String getHost()
public int getPort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |