Java Globus API: Class HostPortList

org.globus.ftp
Class HostPortList

java.lang.Object
  |
  +--org.globus.ftp.HostPortList

public class HostPortList
extends Object

Utility class for parsing and converting host-port information from SPAS and SPOR FTP commands. Represents a list of host-port pairs.


Field Summary
protected static boolean OUT_OF_DATE
           
protected static boolean UP_TO_DATE
           
 
Constructor Summary
HostPortList()
          Creates an empty list
HostPortList(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)
           
 int size()
           
 String toFtpCmdArgument()
          Returns the host-port infromation in the format used by SPOR command.
protected  void updateString()
           
protected  void updateVector()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UP_TO_DATE

protected static boolean UP_TO_DATE

OUT_OF_DATE

protected static boolean OUT_OF_DATE
Constructor Detail

HostPortList

public HostPortList(String spasReplyMsg)
Parses host-port from the reply to SPAS command.
Parameters:
passiveReply - reply message for the SPAS command

HostPortList

public HostPortList()
Creates an empty list
Method Detail

updateString

protected void updateString()

updateVector

protected void updateVector()

add

public void add(HostPort hp)
Adds an element to the list

size

public int size()
Returns:
number of elements in the list

get

public HostPort get(int index)
Returns:
element of the specified index

toFtpCmdArgument

public String toFtpCmdArgument()
Returns the host-port infromation in the format used by SPOR command.
Returns:
host-port information in SPOR command parameter representation.