org.mortbay.util
Class InetAddrPort
java.lang.Object
org.mortbay.util.InetAddrPort
- Serializable
public class InetAddrPort
extends java.lang.Object
implements Serializable
InetAddress and Port.
__0_0_0_0
public static final String __0_0_0_0
InetAddrPort
public InetAddrPort()
InetAddrPort
public InetAddrPort(InetAddress addr,
int port)
Constructor.
InetAddrPort
public InetAddrPort(String inetAddrPort)
throws java.net.UnknownHostException
Constructor.
inetAddrPort
- String of the form "addr:port"
InetAddrPort
public InetAddrPort(String host,
int port)
throws java.net.UnknownHostException
Constructor.
InetAddrPort
public InetAddrPort(int port)
Constructor for a port on all local host address.
InetAddrPort
public InetAddrPort(InetAddrPort address)
Constructor.
address
- InetAddrPort top copy.
clone
public Object clone()
Clone the InetAddrPort.
equals
public boolean equals(Object o)
Equals.
- True if is the same address and port.
getHost
public String getHost()
Get the Host.
getInetAddress
public InetAddress getInetAddress()
Get the IP address.
getPort
public int getPort()
Get the port.
hashCode
public int hashCode()
Hash Code.
setHost
public void setHost(String host)
throws java.net.UnknownHostException
Set the Host.
setInetAddress
public void setInetAddress(InetAddress addr)
Set the IP address.
setPort
public void setPort(int port)
Set the port.
toString
public String toString()
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.