org.apache.commons.net.ftp

Class FTPCommand

public final class FTPCommand extends Object

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 {@link #USER USER } are provided where the constant name is the same as the FTP command.

Author: Daniel F. Savarese

Field Summary
static intABOR
static intABORT
static intACCOUNT
static intACCT
static intALLO
static intALLOCATE
static intAPPE
static intAPPEND
static intCDUP
static intCHANGE_TO_PARENT_DIRECTORY
static intCHANGE_WORKING_DIRECTORY
static intCWD
static intDATA_PORT
static intDELE
static intDELETE
static intFILE_STRUCTURE
static intHELP
static intLIST
static intLOGOUT
static intMAKE_DIRECTORY
static intMKD
static intMODE
static intNAME_LIST
static intNLST
static intNOOP
static intPASS
static intPASSIVE
static intPASSWORD
static intPASV
static intPORT
static intPRINT_WORKING_DIRECTORY
static intPWD
static intQUIT
static intREIN
static intREINITIALIZE
static intREMOVE_DIRECTORY
static intRENAME_FROM
static intRENAME_TO
static intREPRESENTATION_TYPE
static intREST
static intRESTART
static intRETR
static intRETRIEVE
static intRMD
static intRNFR
static intRNTO
static intSITE
static intSITE_PARAMETERS
static intSMNT
static intSTAT
static intSTATUS
static intSTOR
static intSTORE
static intSTORE_UNIQUE
static intSTOU
static intSTRU
static intSTRUCTURE_MOUNT
static intSYST
static intSYSTEM
static intTRANSFER_MODE
static intTYPE
static intUSER
static intUSERNAME
Method Summary
static StringgetCommand(int command)
Retrieve the FTP protocol command string corresponding to a specified command code.

Field Detail

ABOR

public static final int ABOR

ABORT

public static final int ABORT

ACCOUNT

public static final int ACCOUNT

ACCT

public static final int ACCT

ALLO

public static final int ALLO

ALLOCATE

public static final int ALLOCATE

APPE

public static final int APPE

APPEND

public static final int APPEND

CDUP

public static final int CDUP

CHANGE_TO_PARENT_DIRECTORY

public static final int CHANGE_TO_PARENT_DIRECTORY

CHANGE_WORKING_DIRECTORY

public static final int CHANGE_WORKING_DIRECTORY

CWD

public static final int CWD

DATA_PORT

public static final int DATA_PORT

DELE

public static final int DELE

DELETE

public static final int DELETE

FILE_STRUCTURE

public static final int FILE_STRUCTURE

HELP

public static final int HELP

LIST

public static final int LIST

LOGOUT

public static final int LOGOUT

MAKE_DIRECTORY

public static final int MAKE_DIRECTORY

MKD

public static final int MKD

MODE

public static final int MODE

NAME_LIST

public static final int NAME_LIST

NLST

public static final int NLST

NOOP

public static final int NOOP

PASS

public static final int PASS

PASSIVE

public static final int PASSIVE

PASSWORD

public static final int PASSWORD

PASV

public static final int PASV

PORT

public static final int PORT

PRINT_WORKING_DIRECTORY

public static final int PRINT_WORKING_DIRECTORY

PWD

public static final int PWD

QUIT

public static final int QUIT

REIN

public static final int REIN

REINITIALIZE

public static final int REINITIALIZE

REMOVE_DIRECTORY

public static final int REMOVE_DIRECTORY

RENAME_FROM

public static final int RENAME_FROM

RENAME_TO

public static final int RENAME_TO

REPRESENTATION_TYPE

public static final int REPRESENTATION_TYPE

REST

public static final int REST

RESTART

public static final int RESTART

RETR

public static final int RETR

RETRIEVE

public static final int RETRIEVE

RMD

public static final int RMD

RNFR

public static final int RNFR

RNTO

public static final int RNTO

SITE

public static final int SITE

SITE_PARAMETERS

public static final int SITE_PARAMETERS

SMNT

public static final int SMNT

STAT

public static final int STAT

STATUS

public static final int STATUS

STOR

public static final int STOR

STORE

public static final int STORE

STORE_UNIQUE

public static final int STORE_UNIQUE

STOU

public static final int STOU

STRU

public static final int STRU

STRUCTURE_MOUNT

public static final int STRUCTURE_MOUNT

SYST

public static final int SYST

SYSTEM

public static final int SYSTEM

TRANSFER_MODE

public static final int TRANSFER_MODE

TYPE

public static final int TYPE

USER

public static final int USER

USERNAME

public static final int USERNAME

Method Detail

getCommand

public static final String getCommand(int command)
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.