public class HostPortList extends Object
Constructor and Description |
---|
HostPortList()
Creates an empty list
|
HostPortList(String spasReplyMsg)
Parses host-port from the reply to SPAS command.
|
Modifier and Type | Method and Description |
---|---|
void |
add(HostPort hp)
Adds an element to the list
|
HostPort |
get(int index) |
static HostPortList |
parseIPv4Format(String message) |
static HostPortList |
parseIPv6Format(String message) |
int |
size() |
String |
toFtpCmdArgument()
Returns the host-port infromation in the
format used by SPOR command.
|
public HostPortList(String spasReplyMsg)
spasReplyMsg
- reply message for the SPAS commandpublic HostPortList()
public void add(HostPort hp)
public int size()
public HostPort get(int index)
public String toFtpCmdArgument()
public static HostPortList parseIPv6Format(String message)
public static HostPortList parseIPv4Format(String message)
Copyright © 2016. All rights reserved.