|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.glub.secureftp.bean.HostInfo
public class HostInfo
The HostInfo
class is responsible for holding host information.
Constructor Summary | |
---|---|
HostInfo()
Create an empty HostInfo object. |
|
HostInfo(InetAddress hostname,
int port)
Create a new HostInfo object. |
|
HostInfo(String hostname,
int port)
Create a new HostInfo object. |
Method Summary | |
---|---|
String |
getHostAddress()
Get the IP address of the host. |
String |
getHostName()
Get the hostname of the host. |
InetAddress |
getInetAddress()
Get the InetAddress of the host. |
int |
getPort()
Get the port of the host. |
void |
setHostName(InetAddress hostname)
Set the hostname. |
void |
setHostName(String hostname)
Set the hostname. |
void |
setPort(int port)
Set the port. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HostInfo()
HostInfo
object.
public HostInfo(InetAddress hostname, int port)
HostInfo
object.
hostname
- the hostname.port
- the port.public HostInfo(String hostname, int port) throws UnknownHostException
HostInfo
object.
hostname
- the hostname.port
- the port.
UnknownHostException
Method Detail |
---|
public InetAddress getInetAddress()
InetAddress
of the host.
InetAddress
.public String getHostName()
public String getHostAddress()
public void setHostName(InetAddress hostname)
hostname
- the hostname.public void setHostName(String hostname) throws UnknownHostException
hostname
- the hostname.
UnknownHostException
public int getPort()
public void setPort(int port)
port
- the port.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |