|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ftp.HostPort
public class HostPort
Utility class for parsing and converting host-port information from PASV and PORT ftp commands.
Constructor Summary | |
---|---|
protected |
HostPort()
|
|
HostPort(java.net.InetAddress addr,
int port)
Creates the HostPort object from specified ip address and port number. |
|
HostPort(java.lang.String passiveReplyMessage)
Parses host-port from passive mode reply message. |
|
HostPort(java.lang.String ipAddress,
int port)
Creates the HostPort object from specified ip address and port number. |
Method Summary | |
---|---|
java.lang.String |
getHost()
Returns the ip address in the form "h1.h2.h3.h4" |
int |
getPort()
Returns the port number |
java.lang.String |
toFtpCmdArgument()
Returns the host-port information in the format used by PORT command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HostPort()
public HostPort(java.lang.String passiveReplyMessage)
passiveReplyMessage
- reply message for the PASV commandpublic HostPort(java.net.InetAddress addr, int port)
addr
- ip addressport
- port numberpublic HostPort(java.lang.String ipAddress, int port)
ipAddress
- ip addressport
- port numberMethod Detail |
---|
public int getPort()
public java.lang.String getHost()
public java.lang.String toFtpCmdArgument()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |