public class HostPort6 extends HostPort
Constructor | Description |
---|---|
HostPort6(String passiveReplyMessage) |
Parses host-port from passive mode reply message.
|
HostPort6(String version,
String host,
int port) |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public static final String IPv4
public static final String IPv6
public HostPort6(String passiveReplyMessage)
passiveReplyMessage
- reply message for the EPSV commandpublic int getPort()
public void setHost(String host)
host
- the host addresspublic String getHost()
public String getVersion()
public void setVersion(String version)
version
- the address versionpublic String toFtpCmdArgument()
toFtpCmdArgument
in class HostPort
Copyright © 2018. All rights reserved.