Class FTPCommand
java.lang.Object
org.apache.commons.net.ftp.FTPCommand
Deprecated.
FTPCommand 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 as
USER are provided where the constant name is the same as the FTP command.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.Command code 21.static final intDeprecated.Alias for 21.static final intDeprecated.Alias for 2.static final intDeprecated.Command code 2.static final intDeprecated.Command code 17.static final intDeprecated.Alias for 17.static final intDeprecated.Command code 16.static final intDeprecated.Alias for 16.static final intDeprecated.Command code 4.static final intDeprecated.Alias for 4.static final intDeprecated.Alias for 3.static final intDeprecated.Command code 3.static final intDeprecated.Alias for 8.static final intDeprecated.Command code 22.static final intDeprecated.Alias for 22.static final intDeprecated.Command code 37.static final intDeprecated.Command code 36.static final intDeprecated.Command code 34.static final intDeprecated.Alias for 34.static final intDeprecated.Alias for 11.static final intDeprecated.Alias for 33.static final intDeprecated.Command code 31.static final intDeprecated.Command code 26.static final intDeprecated.Alias for 7.static final intDeprecated.Alias for 24.static final intDeprecated.Command code 33.static final intDeprecated.Command code 35.static final intDeprecated.Command code 24.static final intDeprecated.Machine parseable list for a directory.static final intDeprecated.Machine parseable list for a single file.static final intDeprecated.Alias for 33.static final intDeprecated.Command code 12.static final intDeprecated.Alias for 27.static final intDeprecated.Command code 27.static final intDeprecated.Command code 32.static final intDeprecated.Command code 1.static final intDeprecated.Alias for 9.static final intDeprecated.Alias for 1.static final intDeprecated.Command code 9.static final intDeprecated.Command code 8.static final intDeprecated.Alias for 25.static final intDeprecated.Command code 25.static final intDeprecated.Command code 7.static final intDeprecated.Command code 6.static final intDeprecated.Alias for 6.static final intDeprecated.Alias for 23.static final intDeprecated.Alias for 19.static final intDeprecated.Alias for 20.static final intDeprecated.Alias for 10.static final intDeprecated.Command code 18.static final intDeprecated.Alias for 18.static final intDeprecated.Command code 13.static final intDeprecated.Alias for 13.static final intDeprecated.Command code 23.static final intDeprecated.Command code 19.static final intDeprecated.Command code 20.static final intDeprecated.Alias for 35.static final intDeprecated.Command code 28.static final intDeprecated.Alias for 28.static final intDeprecated.Command code 5.static final intDeprecated.Command code 30.static final intDeprecated.Alias for 30.static final intDeprecated.Command code 14.static final intDeprecated.Alias for 14.static final intDeprecated.Alias for 15.static final intDeprecated.Command code 15.static final intDeprecated.Command code 11.static final intDeprecated.Alias for 5.static final intDeprecated.Command code 29.static final intDeprecated.Alias for 29.static final intDeprecated.Alias for 12.static final intDeprecated.Command code 10.static final intDeprecated.Command code 0.static final intDeprecated.Alias for 0. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCommand(int command) Deprecated.Gets the FTP protocol command string corresponding to a specified command code.
-
Field Details
-
USER
-
PASS
-
ACCT
-
CWD
-
CDUP
-
SMNT
-
REIN
-
QUIT
-
PORT
-
PASV
-
TYPE
-
STRU
-
MODE
-
RETR
-
STOR
-
STOU
-
APPE
-
ALLO
-
REST
-
RNFR
-
RNTO
-
ABOR
-
DELE
-
RMD
-
MKD
-
PWD
-
LIST
-
NLST
-
SITE
-
SYST
-
STAT
-
HELP
-
NOOP
-
MDTM
-
FEAT
-
MFMT
-
EPSV
-
EPRT
-
MLSD
Deprecated.Machine parseable list for a directory.- Since:
- 3.0
- See Also:
-
MLST
Deprecated.Machine parseable list for a single file.- Since:
- 3.0
- See Also:
-
USERNAME
-
PASSWORD
-
ACCOUNT
-
CHANGE_WORKING_DIRECTORY
-
CHANGE_TO_PARENT_DIRECTORY
-
STRUCTURE_MOUNT
-
REINITIALIZE
-
LOGOUT
-
DATA_PORT
-
PASSIVE
-
REPRESENTATION_TYPE
-
FILE_STRUCTURE
-
TRANSFER_MODE
-
RETRIEVE
-
STORE
-
STORE_UNIQUE
-
APPEND
-
ALLOCATE
-
RESTART
-
RENAME_FROM
-
RENAME_TO
-
ABORT
-
DELETE
-
REMOVE_DIRECTORY
-
MAKE_DIRECTORY
-
PRINT_WORKING_DIRECTORY
-
NAME_LIST
-
SITE_PARAMETERS
-
SYSTEM
-
STATUS
-
MOD_TIME
-
FEATURES
-
GET_MOD_TIME
-
SET_MOD_TIME
-
-
Method Details
-
getCommand
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.
-
FTPCmdinstead