|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.jetty.util.InetAddrPort
public class InetAddrPort
InetAddress and Port.
Field Summary | |
---|---|
static String |
__0_0_0_0
|
Constructor Summary | |
---|---|
InetAddrPort()
|
|
InetAddrPort(InetAddress addr,
int port)
Constructor. |
|
InetAddrPort(InetAddrPort address)
Constructor. |
|
InetAddrPort(int port)
Constructor for a port on all local host address. |
|
InetAddrPort(String inetAddrPort)
Constructor. |
|
InetAddrPort(String host,
int port)
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String __0_0_0_0
Constructor Detail |
---|
public InetAddrPort()
public InetAddrPort(int port)
port
- public InetAddrPort(InetAddress addr, int port)
addr
- port
- public InetAddrPort(String host, int port) throws UnknownHostException
host
- port
-
UnknownHostException
public InetAddrPort(String inetAddrPort) throws UnknownHostException
inetAddrPort
- String of the form "addr:port"
UnknownHostException
public InetAddrPort(InetAddrPort address)
address
- InetAddrPort top copy.Method Detail |
---|
public String getHost()
public void setHost(String host) throws UnknownHostException
host
-
UnknownHostException
public InetAddress getInetAddress()
public void setInetAddress(InetAddress addr)
addr
- The IP addresspublic int getPort()
public void setPort(int port)
port
- The port numberpublic String toString()
toString
in class Object
public Object clone()
clone
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
o
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |