org.mortbay.util
public class InetAddrPort extends Object implements Serializable
| Field Summary | |
|---|---|
| static String | __0_0_0_0 |
| Constructor Summary | |
|---|---|
| InetAddrPort() | |
| InetAddrPort(int port) Constructor for a port on all local host address. | |
| InetAddrPort(InetAddress addr, int port) Constructor. | |
| InetAddrPort(String host, int port) Constructor. | |
| InetAddrPort(String inetAddrPort) Constructor. | |
| InetAddrPort(InetAddrPort address) Constructor. | |
| Method Summary | |
|---|---|
| Object | clone() Clone the InetAddrPort. |
| boolean | equals(Object o) Equals. |
| String | getHost() Get the Host. |
| InetAddress | getInetAddress() Get the IP address. |
| int | getPort() Get the port. |
| int | hashCode() Hash Code. |
| void | setHost(String host) Set the Host. |
| void | setInetAddress(InetAddress addr) Set the IP address. |
| void | setPort(int port) Set the port. |
| String | toString() |
Parameters: port
Parameters: addr port
Parameters: host port
Parameters: inetAddrPort String of the form "addr:port"
Parameters: address InetAddrPort top copy.
Returns: A new instance.
Parameters: o
Returns: True if is the same address and port.
Returns: The IP address
Returns: The IP address
Returns: The port number
Returns: hash Code.
Parameters: host
Throws: java.net.UnknownHostException
Parameters: addr The IP address
Parameters: port The port number