Modifier | Constructor | Description |
---|---|---|
protected |
HostPort() |
|
|
HostPort(String passiveReplyMessage) |
Parses host-port from passive mode reply message.
|
|
HostPort(String ipAddress,
int port) |
Creates the HostPort object from specified ip address
and port number.
|
|
HostPort(InetAddress addr,
int port) |
Creates the HostPort object from specified ip address
and port number.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getHost() |
Returns the ip address in the form "h1.h2.h3.h4"
|
int |
getPort() |
Returns the port number
|
String |
toFtpCmdArgument() |
Returns the host-port information in the
format used by PORT command.
|
protected HostPort()
public HostPort(String passiveReplyMessage)
passiveReplyMessage
- reply message for the PASV commandpublic HostPort(InetAddress addr, int port)
addr
- ip addressport
- port numberpublic HostPort(String ipAddress, int port)
ipAddress
- ip addressport
- port numberpublic int getPort()
public String getHost()
public String toFtpCmdArgument()
Copyright © 2018. All rights reserved.