Package org.apache.commons.net.ftp
Enum FTPCmd
- java.lang.Object
-
- java.lang.Enum<FTPCmd>
-
- org.apache.commons.net.ftp.FTPCmd
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORFTP command ABOR.ACCTFTP command ACCT.ALLOFTP command ALLO.APPEFTP command APPE.CDUPFTP command CDUP.CWDFTP command CWD.DELEFTP command DELE.EPRTFTP command EPRT.EPSVFTP command EPSV.FEATFTP command FEAT.HELPFTP command HELP.LISTFTP command LIST.MDTMFTP command MDTM.MFMTFTP command MFMT.MKDFTP command MKD.MLSDFTP command MLSD.MLSTFTP command MLST.MODEFTP command MODE.NLSTFTP command NLST.NOOPFTP command NOOP.OPTSFTP command OPTS.PASSFTP command PASS.PASVFTP command PASV.PORTFTP command PORT.PWDFTP command PWD.QUITFTP command QUIT.REINFTP command REIN.RESTFTP command REST.RETRFTP command RETR.RMDFTP command RMD.RNFRFTP command RNFR.RNTOFTP command RNTO.SITEFTP command SITE.SIZEFTP command SIZE.SMNTFTP command SMNT.STATFTP command STAT.STORFTP command STOR.STOUFTP command STOU.STRUFTP command STRU.SYSTFTP command SYST.TYPEFTP command TYPE.USERFTP command USER.
-
Field Summary
Fields Modifier and Type Field Description static FTPCmdABORTAlias.static FTPCmdACCOUNTAlias.static FTPCmdALLOCATEAlias.static FTPCmdAPPENDAlias.static FTPCmdCHANGE_TO_PARENT_DIRECTORYAlias.static FTPCmdCHANGE_WORKING_DIRECTORYAlias.static FTPCmdDATA_PORTAlias.static FTPCmdDELETEAlias.static FTPCmdFEATURESAlias.static FTPCmdFILE_STRUCTUREAlias.static FTPCmdGET_MOD_TIMEAlias.static FTPCmdLOGOUTAlias.static FTPCmdMAKE_DIRECTORYAlias.static FTPCmdMOD_TIMEAlias.static FTPCmdNAME_LISTAlias.static FTPCmdPASSIVEAlias.static FTPCmdPASSWORDAlias.static FTPCmdPRINT_WORKING_DIRECTORYAlias.static FTPCmdREINITIALIZEAlias.static FTPCmdREMOVE_DIRECTORYAlias.static FTPCmdRENAME_FROMAlias.static FTPCmdRENAME_TOAlias.static FTPCmdREPRESENTATION_TYPEAlias.static FTPCmdRESTARTAlias.static FTPCmdRETRIEVEAlias.static FTPCmdSET_MOD_TIMEAlias.static FTPCmdSITE_PARAMETERSAlias.static FTPCmdSTATUSAlias.static FTPCmdSTOREAlias.static FTPCmdSTORE_UNIQUEAlias.static FTPCmdSTRUCTURE_MOUNTAlias.static FTPCmdSYSTEMAlias.static FTPCmdTRANSFER_MODEAlias.static FTPCmdUSERNAMEAlias.
-
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
Alias.
-
CHANGE_WORKING_DIRECTORY
public static final FTPCmd CHANGE_WORKING_DIRECTORY
Alias.
-
FILE_STRUCTURE
public static final FTPCmd FILE_STRUCTURE
Alias.
-
GET_MOD_TIME
public static final FTPCmd GET_MOD_TIME
Alias.
-
MAKE_DIRECTORY
public static final FTPCmd MAKE_DIRECTORY
Alias.
-
PRINT_WORKING_DIRECTORY
public static final FTPCmd PRINT_WORKING_DIRECTORY
Alias.
-
REINITIALIZE
public static final FTPCmd REINITIALIZE
Alias.
-
REMOVE_DIRECTORY
public static final FTPCmd REMOVE_DIRECTORY
Alias.
-
RENAME_FROM
public static final FTPCmd RENAME_FROM
Alias.
-
REPRESENTATION_TYPE
public static final FTPCmd REPRESENTATION_TYPE
Alias.
-
SET_MOD_TIME
public static final FTPCmd SET_MOD_TIME
Alias.
-
SITE_PARAMETERS
public static final FTPCmd SITE_PARAMETERS
Alias.
-
STORE_UNIQUE
public static final FTPCmd STORE_UNIQUE
Alias.
-
STRUCTURE_MOUNT
public static final FTPCmd STRUCTURE_MOUNT
Alias.
-
TRANSFER_MODE
public static final FTPCmd TRANSFER_MODE
Alias.
-
-
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 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.
-
-