Package org.apache.commons.net.ftp
Class FTPCommand
- java.lang.Object
-
- org.apache.commons.net.ftp.FTPCommand
-
@Deprecated public final class FTPCommand extends java.lang.ObjectDeprecated.UseFTPCmdinsteadFTPCommand stores a set of constants for FTP command codes. To interpret the meaning of the codes, familiarity with RFC 959 is assumed. The mnemonic constant names are transcriptions from the code descriptions of RFC 959. For those who think in terms of the actual FTP commands, a set of constants such asUSERare provided where the constant name is the same as the FTP command.
-
-
Field Summary
Fields Modifier and Type Field Description static intABORDeprecated.Command code 21.static intABORTDeprecated.Alias for 21.static intACCOUNTDeprecated.Alias for 2.static intACCTDeprecated.Command code 2.static intALLODeprecated.Command code 17.static intALLOCATEDeprecated.Alias for 17.static intAPPEDeprecated.Command code 16.static intAPPENDDeprecated.Alias for 16.static intCDUPDeprecated.Command code 4.static intCHANGE_TO_PARENT_DIRECTORYDeprecated.Alias for 4.static intCHANGE_WORKING_DIRECTORYDeprecated.Alias for 3.private static java.lang.String[]COMMANDSDeprecated.static intCWDDeprecated.Command code 3.static intDATA_PORTDeprecated.Alias for 8.static intDELEDeprecated.Command code 22.static intDELETEDeprecated.Alias for 22.static intEPRTDeprecated.Command code 37.static intEPSVDeprecated.Command code 36.static intFEATDeprecated.Command code 34.static intFEATURESDeprecated.Alias for 34.static intFILE_STRUCTUREDeprecated.Alias for 11.static intGET_MOD_TIMEDeprecated.Alias for 33.static intHELPDeprecated.Command code 31.private static intLASTDeprecated.static intLISTDeprecated.Command code 26.static intLOGOUTDeprecated.Alias for 7.static intMAKE_DIRECTORYDeprecated.Alias for 24.static intMDTMDeprecated.Command code 33.static intMFMTDeprecated.Command code 35.static intMKDDeprecated.Command code 24.static intMLSDDeprecated.Machine parseable list for a directory.static intMLSTDeprecated.Machine parseable list for a single file.static intMOD_TIMEDeprecated.Alias for 33.static intMODEDeprecated.Command code 12.static intNAME_LISTDeprecated.Alias for 27.static intNLSTDeprecated.Command code 27.static intNOOPDeprecated.Command code 32.static intPASSDeprecated.Command code 1.static intPASSIVEDeprecated.Alias for 9.static intPASSWORDDeprecated.Alias for 1.static intPASVDeprecated.Command code 9.static intPORTDeprecated.Command code 8.static intPRINT_WORKING_DIRECTORYDeprecated.Alias for 25.static intPWDDeprecated.Command code 25.static intQUITDeprecated.Command code 7.static intREINDeprecated.Command code 6.static intREINITIALIZEDeprecated.Alias for 6.static intREMOVE_DIRECTORYDeprecated.Alias for 23.static intRENAME_FROMDeprecated.Alias for 19.static intRENAME_TODeprecated.Alias for 20.static intREPRESENTATION_TYPEDeprecated.Alias for 10.static intRESTDeprecated.Command code 18.static intRESTARTDeprecated.Alias for 18.static intRETRDeprecated.Command code 13.static intRETRIEVEDeprecated.Alias for 13.static intRMDDeprecated.Command code 23.static intRNFRDeprecated.Command code 19.static intRNTODeprecated.Command code 20.static intSET_MOD_TIMEDeprecated.Alias for 35.static intSITEDeprecated.Command code 28.static intSITE_PARAMETERSDeprecated.Alias for 28.static intSMNTDeprecated.Command code 5.static intSTATDeprecated.Command code 30.static intSTATUSDeprecated.Alias for 30.static intSTORDeprecated.Command code 14.static intSTOREDeprecated.Alias for 14.static intSTORE_UNIQUEDeprecated.Alias for 15.static intSTOUDeprecated.Command code 15.static intSTRUDeprecated.Command code 11.static intSTRUCTURE_MOUNTDeprecated.Alias for 5.static intSYSTDeprecated.Command code 29.static intSYSTEMDeprecated.Alias for 29.static intTRANSFER_MODEDeprecated.Alias for 12.static intTYPEDeprecated.Command code 10.static intUSERDeprecated.Command code 0.static intUSERNAMEDeprecated.Alias for 0.
-
Constructor Summary
Constructors Modifier Constructor Description privateFTPCommand()Deprecated.Cannot be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) static voidcheckArray()Deprecated.Default access needed for Unit test.static java.lang.StringgetCommand(int command)Deprecated.Gets the FTP protocol command string corresponding to a specified command code.
-
-
-
Field Detail
-
USER
public static final int USER
Deprecated.Command code 0.- See Also:
- Constant Field Values
-
PASS
public static final int PASS
Deprecated.Command code 1.- See Also:
- Constant Field Values
-
ACCT
public static final int ACCT
Deprecated.Command code 2.- See Also:
- Constant Field Values
-
CWD
public static final int CWD
Deprecated.Command code 3.- See Also:
- Constant Field Values
-
CDUP
public static final int CDUP
Deprecated.Command code 4.- See Also:
- Constant Field Values
-
SMNT
public static final int SMNT
Deprecated.Command code 5.- See Also:
- Constant Field Values
-
REIN
public static final int REIN
Deprecated.Command code 6.- See Also:
- Constant Field Values
-
QUIT
public static final int QUIT
Deprecated.Command code 7.- See Also:
- Constant Field Values
-
PORT
public static final int PORT
Deprecated.Command code 8.- See Also:
- Constant Field Values
-
PASV
public static final int PASV
Deprecated.Command code 9.- See Also:
- Constant Field Values
-
TYPE
public static final int TYPE
Deprecated.Command code 10.- See Also:
- Constant Field Values
-
STRU
public static final int STRU
Deprecated.Command code 11.- See Also:
- Constant Field Values
-
MODE
public static final int MODE
Deprecated.Command code 12.- See Also:
- Constant Field Values
-
RETR
public static final int RETR
Deprecated.Command code 13.- See Also:
- Constant Field Values
-
STOR
public static final int STOR
Deprecated.Command code 14.- See Also:
- Constant Field Values
-
STOU
public static final int STOU
Deprecated.Command code 15.- See Also:
- Constant Field Values
-
APPE
public static final int APPE
Deprecated.Command code 16.- See Also:
- Constant Field Values
-
ALLO
public static final int ALLO
Deprecated.Command code 17.- See Also:
- Constant Field Values
-
REST
public static final int REST
Deprecated.Command code 18.- See Also:
- Constant Field Values
-
RNFR
public static final int RNFR
Deprecated.Command code 19.- See Also:
- Constant Field Values
-
RNTO
public static final int RNTO
Deprecated.Command code 20.- See Also:
- Constant Field Values
-
ABOR
public static final int ABOR
Deprecated.Command code 21.- See Also:
- Constant Field Values
-
DELE
public static final int DELE
Deprecated.Command code 22.- See Also:
- Constant Field Values
-
RMD
public static final int RMD
Deprecated.Command code 23.- See Also:
- Constant Field Values
-
MKD
public static final int MKD
Deprecated.Command code 24.- See Also:
- Constant Field Values
-
PWD
public static final int PWD
Deprecated.Command code 25.- See Also:
- Constant Field Values
-
LIST
public static final int LIST
Deprecated.Command code 26.- See Also:
- Constant Field Values
-
NLST
public static final int NLST
Deprecated.Command code 27.- See Also:
- Constant Field Values
-
SITE
public static final int SITE
Deprecated.Command code 28.- See Also:
- Constant Field Values
-
SYST
public static final int SYST
Deprecated.Command code 29.- See Also:
- Constant Field Values
-
STAT
public static final int STAT
Deprecated.Command code 30.- See Also:
- Constant Field Values
-
HELP
public static final int HELP
Deprecated.Command code 31.- See Also:
- Constant Field Values
-
NOOP
public static final int NOOP
Deprecated.Command code 32.- See Also:
- Constant Field Values
-
MDTM
public static final int MDTM
Deprecated.Command code 33.- Since:
- 2.0
- See Also:
- Constant Field Values
-
FEAT
public static final int FEAT
Deprecated.Command code 34.- Since:
- 2.2
- See Also:
- Constant Field Values
-
MFMT
public static final int MFMT
Deprecated.Command code 35.- Since:
- 2.0
- See Also:
- Constant Field Values
-
EPSV
public static final int EPSV
Deprecated.Command code 36.- Since:
- 2.0
- See Also:
- Constant Field Values
-
EPRT
public static final int EPRT
Deprecated.Command code 37.- Since:
- 2.0
- See Also:
- Constant Field Values
-
MLSD
public static final int MLSD
Deprecated.Machine parseable list for a directory.- Since:
- 3.0
- See Also:
- Constant Field Values
-
MLST
public static final int MLST
Deprecated.Machine parseable list for a single file.- Since:
- 3.0
- See Also:
- Constant Field Values
-
LAST
private static final int LAST
Deprecated.- See Also:
- Constant Field Values
-
USERNAME
public static final int USERNAME
Deprecated.Alias for 0.- See Also:
- Constant Field Values
-
PASSWORD
public static final int PASSWORD
Deprecated.Alias for 1.- See Also:
- Constant Field Values
-
ACCOUNT
public static final int ACCOUNT
Deprecated.Alias for 2.- See Also:
- Constant Field Values
-
CHANGE_WORKING_DIRECTORY
public static final int CHANGE_WORKING_DIRECTORY
Deprecated.Alias for 3.- See Also:
- Constant Field Values
-
CHANGE_TO_PARENT_DIRECTORY
public static final int CHANGE_TO_PARENT_DIRECTORY
Deprecated.Alias for 4.- See Also:
- Constant Field Values
-
STRUCTURE_MOUNT
public static final int STRUCTURE_MOUNT
Deprecated.Alias for 5.- See Also:
- Constant Field Values
-
REINITIALIZE
public static final int REINITIALIZE
Deprecated.Alias for 6.- See Also:
- Constant Field Values
-
LOGOUT
public static final int LOGOUT
Deprecated.Alias for 7.- See Also:
- Constant Field Values
-
DATA_PORT
public static final int DATA_PORT
Deprecated.Alias for 8.- See Also:
- Constant Field Values
-
PASSIVE
public static final int PASSIVE
Deprecated.Alias for 9.- See Also:
- Constant Field Values
-
REPRESENTATION_TYPE
public static final int REPRESENTATION_TYPE
Deprecated.Alias for 10.- See Also:
- Constant Field Values
-
FILE_STRUCTURE
public static final int FILE_STRUCTURE
Deprecated.Alias for 11.- See Also:
- Constant Field Values
-
TRANSFER_MODE
public static final int TRANSFER_MODE
Deprecated.Alias for 12.- See Also:
- Constant Field Values
-
RETRIEVE
public static final int RETRIEVE
Deprecated.Alias for 13.- See Also:
- Constant Field Values
-
STORE
public static final int STORE
Deprecated.Alias for 14.- See Also:
- Constant Field Values
-
STORE_UNIQUE
public static final int STORE_UNIQUE
Deprecated.Alias for 15.- See Also:
- Constant Field Values
-
APPEND
public static final int APPEND
Deprecated.Alias for 16.- See Also:
- Constant Field Values
-
ALLOCATE
public static final int ALLOCATE
Deprecated.Alias for 17.- See Also:
- Constant Field Values
-
RESTART
public static final int RESTART
Deprecated.Alias for 18.- See Also:
- Constant Field Values
-
RENAME_FROM
public static final int RENAME_FROM
Deprecated.Alias for 19.- See Also:
- Constant Field Values
-
RENAME_TO
public static final int RENAME_TO
Deprecated.Alias for 20.- See Also:
- Constant Field Values
-
ABORT
public static final int ABORT
Deprecated.Alias for 21.- See Also:
- Constant Field Values
-
DELETE
public static final int DELETE
Deprecated.Alias for 22.- See Also:
- Constant Field Values
-
REMOVE_DIRECTORY
public static final int REMOVE_DIRECTORY
Deprecated.Alias for 23.- See Also:
- Constant Field Values
-
MAKE_DIRECTORY
public static final int MAKE_DIRECTORY
Deprecated.Alias for 24.- See Also:
- Constant Field Values
-
PRINT_WORKING_DIRECTORY
public static final int PRINT_WORKING_DIRECTORY
Deprecated.Alias for 25.- See Also:
- Constant Field Values
-
NAME_LIST
public static final int NAME_LIST
Deprecated.Alias for 27.- See Also:
- Constant Field Values
-
SITE_PARAMETERS
public static final int SITE_PARAMETERS
Deprecated.Alias for 28.- See Also:
- Constant Field Values
-
SYSTEM
public static final int SYSTEM
Deprecated.Alias for 29.- See Also:
- Constant Field Values
-
STATUS
public static final int STATUS
Deprecated.Alias for 30.- See Also:
- Constant Field Values
-
MOD_TIME
public static final int MOD_TIME
Deprecated.Alias for 33.- Since:
- 2.0
- See Also:
- Constant Field Values
-
FEATURES
public static final int FEATURES
Deprecated.Alias for 34.- Since:
- 2.2
- See Also:
- Constant Field Values
-
GET_MOD_TIME
public static final int GET_MOD_TIME
Deprecated.Alias for 33.- Since:
- 2.2
- See Also:
- Constant Field Values
-
SET_MOD_TIME
public static final int SET_MOD_TIME
Deprecated.Alias for 35.- Since:
- 2.2
- See Also:
- Constant Field Values
-
COMMANDS
private static final java.lang.String[] COMMANDS
Deprecated.
-
-
Method Detail
-
checkArray
static void checkArray()
Deprecated.Default access needed for Unit test.
-
getCommand
public static java.lang.String getCommand(int command)
Deprecated.Gets the FTP protocol command string corresponding to a specified command code.- Parameters:
command- The command code.- Returns:
- The FTP protcol command string corresponding to a specified command code.
-
-