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.Object
Deprecated.useFTPCmd
insteadFTPCommand 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 asUSER
are provided where the constant name is the same as the FTP command.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ABOR
Deprecated.Command code 21.static int
ABORT
Deprecated.Alias for 21.static int
ACCOUNT
Deprecated.Alias for 2.static int
ACCT
Deprecated.Command code 2.static int
ALLO
Deprecated.Command code 17.static int
ALLOCATE
Deprecated.Alias for 17.static int
APPE
Deprecated.Command code 16.static int
APPEND
Deprecated.Alias for 16.static int
CDUP
Deprecated.Command code 4.static int
CHANGE_TO_PARENT_DIRECTORY
Deprecated.Alias for 4.static int
CHANGE_WORKING_DIRECTORY
Deprecated.Alias for 3.private static java.lang.String[]
COMMANDS
Deprecated.static int
CWD
Deprecated.Command code 3.static int
DATA_PORT
Deprecated.Alias for 8.static int
DELE
Deprecated.Command code 22.static int
DELETE
Deprecated.Alias for 22.static int
EPRT
Deprecated.Command code 37.static int
EPSV
Deprecated.Command code 36.static int
FEAT
Deprecated.Command code 34.static int
FEATURES
Deprecated.Alias for 34.static int
FILE_STRUCTURE
Deprecated.Alias for 11.static int
GET_MOD_TIME
Deprecated.Alias for 33.static int
HELP
Deprecated.Command code 31.private static int
LAST
Deprecated.static int
LIST
Deprecated.Command code 26.static int
LOGOUT
Deprecated.Alias for 7.static int
MAKE_DIRECTORY
Deprecated.Alias for 24.static int
MDTM
Deprecated.Command code 33.static int
MFMT
Deprecated.Command code 35.static int
MKD
Deprecated.Command code 24.static int
MLSD
Deprecated.Machine parseable list for a directory.static int
MLST
Deprecated.Machine parseable list for a single file.static int
MOD_TIME
Deprecated.Alias for 33.static int
MODE
Deprecated.Command code 12.static int
NAME_LIST
Deprecated.Alias for 27.static int
NLST
Deprecated.Command code 27.static int
NOOP
Deprecated.Command code 32.static int
PASS
Deprecated.Command code 1.static int
PASSIVE
Deprecated.Alias for 9.static int
PASSWORD
Deprecated.Alias for 1.static int
PASV
Deprecated.Command code 9.static int
PORT
Deprecated.Command code 8.static int
PRINT_WORKING_DIRECTORY
Deprecated.Alias for 25.static int
PWD
Deprecated.Command code 25.static int
QUIT
Deprecated.Command code 7.static int
REIN
Deprecated.Command code 6.static int
REINITIALIZE
Deprecated.Alias for 6.static int
REMOVE_DIRECTORY
Deprecated.Alias for 23.static int
RENAME_FROM
Deprecated.Alias for 19.static int
RENAME_TO
Deprecated.Alias for 20.static int
REPRESENTATION_TYPE
Deprecated.Alias for 10.static int
REST
Deprecated.Command code 18.static int
RESTART
Deprecated.Alias for 18.static int
RETR
Deprecated.Command code 13.static int
RETRIEVE
Deprecated.Alias for 13.static int
RMD
Deprecated.Command code 23.static int
RNFR
Deprecated.Command code 19.static int
RNTO
Deprecated.Command code 20.static int
SET_MOD_TIME
Deprecated.Alias for 35.static int
SITE
Deprecated.Command code 28.static int
SITE_PARAMETERS
Deprecated.Alias for 28.static int
SMNT
Deprecated.Command code 5.static int
STAT
Deprecated.Command code 30.static int
STATUS
Deprecated.Alias for 30.static int
STOR
Deprecated.Command code 14.static int
STORE
Deprecated.Alias for 14.static int
STORE_UNIQUE
Deprecated.Alias for 15.static int
STOU
Deprecated.Command code 15.static int
STRU
Deprecated.Command code 11.static int
STRUCTURE_MOUNT
Deprecated.Alias for 5.static int
SYST
Deprecated.Command code 29.static int
SYSTEM
Deprecated.Alias for 29.static int
TRANSFER_MODE
Deprecated.Alias for 12.static int
TYPE
Deprecated.Command code 10.static int
USER
Deprecated.Command code 0.static int
USERNAME
Deprecated.Alias for 0.
-
Constructor Summary
Constructors Modifier Constructor Description private
FTPCommand()
Deprecated.Cannot be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) static void
checkArray()
Deprecated.Default access needed for Unit test.static java.lang.String
getCommand(int command)
Deprecated.Retrieve 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.Retrieve 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.
-
-