Package org.globus.ftp
Class FeatureList
java.lang.Object
org.globus.ftp.FeatureList
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 ClassesModifier and TypeClassDescriptionstatic final class
RFC 2389 specified the following syntax for FEAT responce -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
protected final List<FeatureList.Feature>
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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 Details
-
SIZE
- See Also:
-
MDTM
- See Also:
-
PARALLEL
- See Also:
-
ESTO
- See Also:
-
ERET
- See Also:
-
SBUF
- See Also:
-
ABUF
- See Also:
-
DCAU
- See Also:
-
PIPE
- See Also:
-
MODEX
- See Also:
-
GETPUT
- See Also:
-
CKSUM
- See Also:
-
features
-
-
Constructor Details
-
FeatureList
-
-
Method Details
-
contains
-
getFeature
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
-