Package org.apache.commons.net.ftp
Enum FTPCmd
- java.lang.Object
-
- java.lang.Enum<FTPCmd>
-
- org.apache.commons.net.ftp.FTPCmd
-
-
Field Summary
Fields Modifier and Type Field Description static FTPCmd
ABORT
static FTPCmd
ACCOUNT
static FTPCmd
ALLOCATE
static FTPCmd
APPEND
static FTPCmd
CHANGE_TO_PARENT_DIRECTORY
static FTPCmd
CHANGE_WORKING_DIRECTORY
static FTPCmd
DATA_PORT
static FTPCmd
DELETE
static FTPCmd
FEATURES
static FTPCmd
FILE_STRUCTURE
static FTPCmd
GET_MOD_TIME
static FTPCmd
LOGOUT
static FTPCmd
MAKE_DIRECTORY
static FTPCmd
MOD_TIME
static FTPCmd
NAME_LIST
static FTPCmd
PASSIVE
static FTPCmd
PASSWORD
static FTPCmd
PRINT_WORKING_DIRECTORY
static FTPCmd
REINITIALIZE
static FTPCmd
REMOVE_DIRECTORY
static FTPCmd
RENAME_FROM
static FTPCmd
RENAME_TO
static FTPCmd
REPRESENTATION_TYPE
static FTPCmd
RESTART
static FTPCmd
RETRIEVE
static FTPCmd
SET_MOD_TIME
static FTPCmd
SITE_PARAMETERS
static FTPCmd
STATUS
static FTPCmd
STORE
static FTPCmd
STORE_UNIQUE
static FTPCmd
STRUCTURE_MOUNT
static FTPCmd
SYSTEM
static FTPCmd
TRANSFER_MODE
static FTPCmd
USERNAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCommand()
Retrieve the FTP protocol command string corresponding to a specified command code.static FTPCmd
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FTPCmd[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
CHANGE_TO_PARENT_DIRECTORY
public static final FTPCmd CHANGE_TO_PARENT_DIRECTORY
-
CHANGE_WORKING_DIRECTORY
public static final FTPCmd CHANGE_WORKING_DIRECTORY
-
FILE_STRUCTURE
public static final FTPCmd FILE_STRUCTURE
-
GET_MOD_TIME
public static final FTPCmd GET_MOD_TIME
-
MAKE_DIRECTORY
public static final FTPCmd MAKE_DIRECTORY
-
PRINT_WORKING_DIRECTORY
public static final FTPCmd PRINT_WORKING_DIRECTORY
-
REINITIALIZE
public static final FTPCmd REINITIALIZE
-
REMOVE_DIRECTORY
public static final FTPCmd REMOVE_DIRECTORY
-
RENAME_FROM
public static final FTPCmd RENAME_FROM
-
REPRESENTATION_TYPE
public static final FTPCmd REPRESENTATION_TYPE
-
SET_MOD_TIME
public static final FTPCmd SET_MOD_TIME
-
SITE_PARAMETERS
public static final FTPCmd SITE_PARAMETERS
-
STORE_UNIQUE
public static final FTPCmd STORE_UNIQUE
-
STRUCTURE_MOUNT
public static final FTPCmd STRUCTURE_MOUNT
-
TRANSFER_MODE
public static final FTPCmd TRANSFER_MODE
-
-
Method Detail
-
values
public static FTPCmd[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FTPCmd c : FTPCmd.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FTPCmd valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCommand
public final java.lang.String getCommand()
Retrieve the FTP protocol command string corresponding to a specified command code.- Returns:
- The FTP protcol command string corresponding to a specified command code.
-
-