|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.util.InetAddrPort
InetAddress and Port.
Field Summary | |
static java.lang.String |
__0_0_0_0
|
Constructor Summary | |
InetAddrPort()
|
|
InetAddrPort(java.net.InetAddress addr,
int port)
Constructor. |
|
InetAddrPort(InetAddrPort address)
Constructor. |
|
InetAddrPort(int port)
Constructor for a port on all local host address. |
|
InetAddrPort(java.lang.String inetAddrPort)
Constructor. |
|
InetAddrPort(java.lang.String host,
int port)
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Clone the InetAddrPort. |
boolean |
equals(java.lang.Object o)
Equals. |
java.lang.String |
getHost()
Get the Host. |
java.net.InetAddress |
getInetAddress()
Get the IP address. |
int |
getPort()
Get the port. |
int |
hashCode()
Hash Code. |
void |
setHost(java.lang.String host)
Set the Host. |
void |
setInetAddress(java.net.InetAddress addr)
Set the IP address. |
void |
setPort(int port)
Set the port. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String __0_0_0_0
Constructor Detail |
public InetAddrPort()
public InetAddrPort(int port)
port
- public InetAddrPort(java.net.InetAddress addr, int port)
addr
- port
- public InetAddrPort(java.lang.String host, int port) throws java.net.UnknownHostException
host
- port
- public InetAddrPort(java.lang.String inetAddrPort) throws java.net.UnknownHostException
inetAddrPort
- String of the form "addr:port"public InetAddrPort(InetAddrPort address)
address
- InetAddrPort top copy.Method Detail |
public java.lang.String getHost()
public void setHost(java.lang.String host) throws java.net.UnknownHostException
host
-
java.net.UnknownHostException
public java.net.InetAddress getInetAddress()
public void setInetAddress(java.net.InetAddress addr)
addr
- The IP addresspublic int getPort()
public void setPort(int port)
port
- The port numberpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |