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 FTPCmdABORTstatic FTPCmdACCOUNTstatic FTPCmdALLOCATEstatic FTPCmdAPPENDstatic FTPCmdCHANGE_TO_PARENT_DIRECTORYstatic FTPCmdCHANGE_WORKING_DIRECTORYstatic FTPCmdDATA_PORTstatic FTPCmdDELETEstatic FTPCmdFEATURESstatic FTPCmdFILE_STRUCTUREstatic FTPCmdGET_MOD_TIMEstatic FTPCmdLOGOUTstatic FTPCmdMAKE_DIRECTORYstatic FTPCmdMOD_TIMEstatic FTPCmdNAME_LISTstatic FTPCmdPASSIVEstatic FTPCmdPASSWORDstatic FTPCmdPRINT_WORKING_DIRECTORYstatic FTPCmdREINITIALIZEstatic FTPCmdREMOVE_DIRECTORYstatic FTPCmdRENAME_FROMstatic FTPCmdRENAME_TOstatic FTPCmdREPRESENTATION_TYPEstatic FTPCmdRESTARTstatic FTPCmdRETRIEVEstatic FTPCmdSET_MOD_TIMEstatic FTPCmdSITE_PARAMETERSstatic FTPCmdSTATUSstatic FTPCmdSTOREstatic FTPCmdSTORE_UNIQUEstatic FTPCmdSTRUCTURE_MOUNTstatic FTPCmdSYSTEMstatic FTPCmdTRANSFER_MODEstatic FTPCmdUSERNAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommand()Retrieve the FTP protocol command string corresponding to a specified command code.static FTPCmdvalueOf(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.
-
-