com.oroinc.net.ftp
Class FTPCommand
java.lang.Object
|
+--com.oroinc.net.ftp.FTPCommand
- public final class FTPCommand
- extends java.lang.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 USER are provided
where the constant name is the same as the FTP command.
- Author:
- Daniel F. Savarese
Method Summary |
static java.lang.String |
getCommand(int command)
Retrieve the FTP protocol command string corresponding to a specified
command code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USER
public static final int USER
PASS
public static final int PASS
ACCT
public static final int ACCT
CWD
public static final int CWD
CDUP
public static final int CDUP
SMNT
public static final int SMNT
REIN
public static final int REIN
QUIT
public static final int QUIT
PORT
public static final int PORT
PASV
public static final int PASV
TYPE
public static final int TYPE
STRU
public static final int STRU
MODE
public static final int MODE
RETR
public static final int RETR
STOR
public static final int STOR
STOU
public static final int STOU
APPE
public static final int APPE
ALLO
public static final int ALLO
REST
public static final int REST
RNFR
public static final int RNFR
RNTO
public static final int RNTO
ABOR
public static final int ABOR
DELE
public static final int DELE
RMD
public static final int RMD
MKD
public static final int MKD
PWD
public static final int PWD
LIST
public static final int LIST
NLST
public static final int NLST
SITE
public static final int SITE
SYST
public static final int SYST
STAT
public static final int STAT
HELP
public static final int HELP
NOOP
public static final int NOOP
USERNAME
public static final int USERNAME
PASSWORD
public static final int PASSWORD
ACCOUNT
public static final int ACCOUNT
CHANGE_WORKING_DIRECTORY
public static final int CHANGE_WORKING_DIRECTORY
CHANGE_TO_PARENT_DIRECTORY
public static final int CHANGE_TO_PARENT_DIRECTORY
STRUCTURE_MOUNT
public static final int STRUCTURE_MOUNT
REINITIALIZE
public static final int REINITIALIZE
LOGOUT
public static final int LOGOUT
DATA_PORT
public static final int DATA_PORT
PASSIVE
public static final int PASSIVE
REPRESENTATION_TYPE
public static final int REPRESENTATION_TYPE
FILE_STRUCTURE
public static final int FILE_STRUCTURE
TRANSFER_MODE
public static final int TRANSFER_MODE
RETRIEVE
public static final int RETRIEVE
STORE
public static final int STORE
STORE_UNIQUE
public static final int STORE_UNIQUE
APPEND
public static final int APPEND
ALLOCATE
public static final int ALLOCATE
RESTART
public static final int RESTART
RENAME_FROM
public static final int RENAME_FROM
RENAME_TO
public static final int RENAME_TO
ABORT
public static final int ABORT
DELETE
public static final int DELETE
REMOVE_DIRECTORY
public static final int REMOVE_DIRECTORY
MAKE_DIRECTORY
public static final int MAKE_DIRECTORY
PRINT_WORKING_DIRECTORY
public static final int PRINT_WORKING_DIRECTORY
NAME_LIST
public static final int NAME_LIST
SITE_PARAMETERS
public static final int SITE_PARAMETERS
SYSTEM
public static final int SYSTEM
STATUS
public static final int STATUS
getCommand
public static final java.lang.String getCommand(int command)
- Retrieve the FTP protocol command string corresponding to a specified
command code.
- Parameters:
The
- command code.- Returns:
- The FTP protcol command string corresponding to a specified
command code.
Copyright © 1997-2002 Daniel F. Savarese. All Rights Reserved.