Class HostPort6
java.lang.Object
org.globus.ftp.HostPort
org.globus.ftp.HostPort6
Utility class for parsing and converting host-port information from EPSV
and EPRT ftp commands.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Returns the host addressstatic StringgetIPAddressVersion(String address) intgetPort()Returns the port numberReturns the address versionvoidSets the host addressvoidsetVersion(String version) Sets the address versionReturns the host-port information in the format used by EPRT command.
-
Field Details
-
IPv4
- See Also:
-
IPv6
- See Also:
-
host
-
port
private int port -
version
-
-
Constructor Details
-
HostPort6
-
HostPort6
Parses host-port from passive mode reply message. Note that the argument is not the whole message, but only the content of the brackets: <d><net-prt><d><net-addr><d><tcp-port><d>- Parameters:
passiveReplyMessage- reply message for the EPSV command
-
-
Method Details
-
getPort
-
setHost
-
getHost
-
getVersion
-
setVersion
Sets the address version- Parameters:
version- the address version
-
toFtpCmdArgument
Returns the host-port information in the format used by EPRT command. <d><net-prt><d><net-addr><d><tcp-port><d>- Overrides:
toFtpCmdArgumentin classHostPort- Returns:
- host-port information in EPRT command representation.
-
getIPAddressVersion
-