|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ftp.HostPort
org.globus.ftp.HostPort6
Utility class for parsing and converting host-port information from EPSV and EPRT ftp commands.
Field Summary | |
static String |
IPv4
|
static String |
IPv6
|
Constructor Summary | |
HostPort6(String passiveReplyMessage)
Parses host-port from passive mode reply message. |
|
HostPort6(String version,
String host,
int port)
|
Method Summary | |
String |
getHost()
Returns the host address |
static String |
getIPAddressVersion(String address)
|
int |
getPort()
Returns the port number |
String |
getVersion()
Returns the address version |
void |
setHost(String host)
Sets the host address |
void |
setVersion(String version)
Sets the address version |
String |
toFtpCmdArgument()
Returns the host-port information in the format used by EPRT command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String IPv4
public static final String IPv6
Constructor Detail |
public HostPort6(String version, String host, int port)
public HostPort6(String passiveReplyMessage)
passiveReplyMessage
- reply message for the EPSV commandMethod Detail |
public int getPort()
getPort
in class HostPort
public void setHost(String host)
host
- the host addresspublic String getHost()
getHost
in class HostPort
public String getVersion()
public void setVersion(String version)
version
- the address versionpublic String toFtpCmdArgument()
toFtpCmdArgument
in class HostPort
public static String getIPAddressVersion(String address)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |