|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.ftp.HostPortList
public class HostPortList
Utility class for parsing and converting host-port information from SPAS and SPOR FTP commands. Represents a list of host-port pairs.
| Constructor Summary | |
|---|---|
HostPortList()
Creates an empty list |
|
HostPortList(java.lang.String spasReplyMsg)
Parses host-port from the reply to SPAS command. |
|
| Method Summary | |
|---|---|
void |
add(HostPort hp)
Adds an element to the list |
HostPort |
get(int index)
|
static HostPortList |
parseIPv4Format(java.lang.String message)
|
static HostPortList |
parseIPv6Format(java.lang.String message)
|
int |
size()
|
java.lang.String |
toFtpCmdArgument()
Returns the host-port infromation in the format used by SPOR command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HostPortList(java.lang.String spasReplyMsg)
spasReplyMsg - reply message for the SPAS commandpublic HostPortList()
| Method Detail |
|---|
public void add(HostPort hp)
public int size()
public HostPort get(int index)
public java.lang.String toFtpCmdArgument()
public static HostPortList parseIPv6Format(java.lang.String message)
public static HostPortList parseIPv4Format(java.lang.String message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||