Package org.globus.ftp
Class FeatureList
- java.lang.Object
-
- org.globus.ftp.FeatureList
-
public class FeatureList extends Object
Represents features supported by server (as returned by FEAT command). Use the static members of this class to refer to well known feature names. Example: check if the server supports PARALLEL feature:FeatureList fl = new FeatureList(client.getFeatureList()); if (fl.contains(FeatureList.PARALLEL)) { ... }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FeatureList.Feature
RFC 2389 specified the following syntax for FEAT responce
-
Field Summary
Fields Modifier and Type Field Description static String
ABUF
static String
CKSUM
static String
DCAU
static String
ERET
static String
ESTO
protected List<FeatureList.Feature>
features
static String
GETPUT
static String
MDTM
static String
MODEX
static String
PARALLEL
static String
PIPE
static String
SBUF
static String
SIZE
-
Constructor Summary
Constructors Constructor Description FeatureList(String featReplyMsg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String label)
List<FeatureList.Feature>
getFeature(String label)
Get all features that have label equal to the argument Note that RFC 2389 does not require a feature with a given label to appear only once
-
-
-
Field Detail
-
SIZE
public static final String SIZE
- See Also:
- Constant Field Values
-
MDTM
public static final String MDTM
- See Also:
- Constant Field Values
-
PARALLEL
public static final String PARALLEL
- See Also:
- Constant Field Values
-
ESTO
public static final String ESTO
- See Also:
- Constant Field Values
-
ERET
public static final String ERET
- See Also:
- Constant Field Values
-
SBUF
public static final String SBUF
- See Also:
- Constant Field Values
-
ABUF
public static final String ABUF
- See Also:
- Constant Field Values
-
DCAU
public static final String DCAU
- See Also:
- Constant Field Values
-
PIPE
public static final String PIPE
- See Also:
- Constant Field Values
-
MODEX
public static final String MODEX
- See Also:
- Constant Field Values
-
GETPUT
public static final String GETPUT
- See Also:
- Constant Field Values
-
CKSUM
public static final String CKSUM
- See Also:
- Constant Field Values
-
features
protected final List<FeatureList.Feature> features
-
-
Constructor Detail
-
FeatureList
public FeatureList(String featReplyMsg)
-
-
Method Detail
-
contains
public boolean contains(String label)
-
getFeature
public List<FeatureList.Feature> getFeature(String label)
Get all features that have label equal to the argument Note that RFC 2389 does not require a feature with a given label to appear only once- Parameters:
label
-- Returns:
- List of found features with given label in the same order as they were given to us by the server
-
-