org.apache.commons.net.ftp
Class FTPReply

public class FTPReply
FTPReply stores a set of constants for FTP reply 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 reply code values, a set of CODE_NUM constants are provided where NUM is the numerical value of the code.

SinceNot specified.
VersionNot specified.
AuthorDaniel F. Savarese
Wiki javadoc Use textile entry format.
Add your comments here.
Field Summary
static int ACTION_ABORTED
No description provided.
static int BAD_COMMAND_SEQUENCE
No description provided.
static int CANNOT_OPEN_DATA_CONNECTION
No description provided.
static int CLOSING_DATA_CONNECTION
No description provided.
static int CODE_110
No description provided.
static int CODE_120
No description provided.
static int CODE_125
No description provided.
static int CODE_150
No description provided.
static int CODE_200
No description provided.
static int CODE_202
No description provided.
static int CODE_211
No description provided.
static int CODE_212
No description provided.
static int CODE_213
No description provided.
static int CODE_214
No description provided.
static int CODE_215
No description provided.
static int CODE_220
No description provided.
static int CODE_221
No description provided.
static int CODE_225
No description provided.
static int CODE_226
No description provided.
static int CODE_227
No description provided.
static int CODE_230
No description provided.
static int CODE_250
No description provided.
static int CODE_257
No description provided.
static int CODE_331
No description provided.
static int CODE_332
No description provided.
static int CODE_350
No description provided.
static int CODE_421
No description provided.
static int CODE_425
No description provided.
static int CODE_426
No description provided.
static int CODE_450
No description provided.
static int CODE_451
No description provided.
static int CODE_452
No description provided.
static int CODE_500
No description provided.
static int CODE_501
No description provided.
static int CODE_502
No description provided.
static int CODE_503
No description provided.
static int CODE_504
No description provided.
static int CODE_521
No description provided.
static int CODE_530
No description provided.
static int CODE_532
No description provided.
static int CODE_550
No description provided.
static int CODE_551
No description provided.
static int CODE_552
No description provided.
static int CODE_553
No description provided.
static int COMMAND_IS_SUPERFLUOUS
No description provided.
static int COMMAND_NOT_IMPLEMENTED
No description provided.
static int COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER
No description provided.
static int COMMAND_OK
No description provided.
static int DATA_CONNECTION_ALREADY_OPEN
No description provided.
static int DATA_CONNECTION_OPEN
No description provided.
static int DIRECTORY_STATUS
No description provided.
static int ENTERING_PASSIVE_MODE
No description provided.
static int FILE_ACTION_NOT_TAKEN
No description provided.
static int FILE_ACTION_OK
No description provided.
static int FILE_ACTION_PENDING
No description provided.
static int FILE_NAME_NOT_ALLOWED
No description provided.
static int FILE_STATUS
No description provided.
static int FILE_STATUS_OK
No description provided.
static int FILE_UNAVAILABLE
No description provided.
static int HELP_MESSAGE
No description provided.
static int INSUFFICIENT_STORAGE
No description provided.
static int NAME_SYSTEM_TYPE
No description provided.
static int NEED_ACCOUNT
No description provided.
static int NEED_ACCOUNT_FOR_STORING_FILES
No description provided.
static int NEED_PASSWORD
No description provided.
static int NOT_LOGGED_IN
No description provided.
static int PAGE_TYPE_UNKNOWN
No description provided.
static int PATHNAME_CREATED
No description provided.
static int RESTART_MARKER
No description provided.
static int SERVICE_CLOSING_CONTROL_CONNECTION
No description provided.
static int SERVICE_NOT_AVAILABLE
No description provided.
static int SERVICE_NOT_READY
No description provided.
static int SERVICE_READY
No description provided.
static int STORAGE_ALLOCATION_EXCEEDED
No description provided.
static int SYNTAX_ERROR_IN_ARGUMENTS
No description provided.
static int SYSTEM_STATUS
No description provided.
static int TRANSFER_ABORTED
No description provided.
static int UNRECOGNIZED_COMMAND
No description provided.
static int USER_LOGGED_IN
No description provided.
Method Summary
static boolean isNegativePermanent( int reply )
Determine if a reply code is a negative permanent response.
static boolean isNegativeTransient( int reply )
Determine if a reply code is a negative transient response.
static boolean isPositiveCompletion( int reply )
Determine if a reply code is a positive completion response.
static boolean isPositiveIntermediate( int reply )
Determine if a reply code is a positive intermediate response.
static boolean isPositivePreliminary( int reply )
Determine if a reply code is a positive preliminary response.
ACTION_ABORTED
public static int ACTION_ABORTED
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
BAD_COMMAND_SEQUENCE
public static int BAD_COMMAND_SEQUENCE
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CANNOT_OPEN_DATA_CONNECTION
public static int CANNOT_OPEN_DATA_CONNECTION
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CLOSING_DATA_CONNECTION
public static int CLOSING_DATA_CONNECTION
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_110
public static int CODE_110
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_120
public static int CODE_120
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_125
public static int CODE_125
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_150
public static int CODE_150
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_200
public static int CODE_200
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_202
public static int CODE_202
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_211
public static int CODE_211
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_212
public static int CODE_212
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_213
public static int CODE_213
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_214
public static int CODE_214
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_215
public static int CODE_215
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_220
public static int CODE_220
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_221
public static int CODE_221
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_225
public static int CODE_225
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_226
public static int CODE_226
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_227
public static int CODE_227
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_230
public static int CODE_230
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_250
public static int CODE_250
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_257
public static int CODE_257
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_331
public static int CODE_331
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_332
public static int CODE_332
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_350
public static int CODE_350
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_421
public static int CODE_421
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_425
public static int CODE_425
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_426
public static int CODE_426
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_450
public static int CODE_450
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_451
public static int CODE_451
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_452
public static int CODE_452
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_500
public static int CODE_500
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_501
public static int CODE_501
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_502
public static int CODE_502
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_503
public static int CODE_503
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_504
public static int CODE_504
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_521
public static int CODE_521
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_530
public static int CODE_530
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_532
public static int CODE_532
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_550
public static int CODE_550
No description provided.
Wiki javadoc Use textile entry format.

No such file or directory

CODE_551
public static int CODE_551
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_552
public static int CODE_552
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
CODE_553
public static int CODE_553
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
COMMAND_IS_SUPERFLUOUS
public static int COMMAND_IS_SUPERFLUOUS
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
COMMAND_NOT_IMPLEMENTED
public static int COMMAND_NOT_IMPLEMENTED
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER
public static int COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
COMMAND_OK
public static int COMMAND_OK
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
DATA_CONNECTION_ALREADY_OPEN
public static int DATA_CONNECTION_ALREADY_OPEN
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
DATA_CONNECTION_OPEN
public static int DATA_CONNECTION_OPEN
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
DIRECTORY_STATUS
public static int DIRECTORY_STATUS
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
ENTERING_PASSIVE_MODE
public static int ENTERING_PASSIVE_MODE
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
FILE_ACTION_NOT_TAKEN
public static int FILE_ACTION_NOT_TAKEN
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
FILE_ACTION_OK
public static int FILE_ACTION_OK
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
FILE_ACTION_PENDING
public static int FILE_ACTION_PENDING
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
FILE_NAME_NOT_ALLOWED
public static int FILE_NAME_NOT_ALLOWED
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
FILE_STATUS
public static int FILE_STATUS
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
FILE_STATUS_OK
public static int FILE_STATUS_OK
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
FILE_UNAVAILABLE
public static int FILE_UNAVAILABLE
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
HELP_MESSAGE
public static int HELP_MESSAGE
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
INSUFFICIENT_STORAGE
public static int INSUFFICIENT_STORAGE
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
NAME_SYSTEM_TYPE
public static int NAME_SYSTEM_TYPE
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
NEED_ACCOUNT
public static int NEED_ACCOUNT
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
NEED_ACCOUNT_FOR_STORING_FILES
public static int NEED_ACCOUNT_FOR_STORING_FILES
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
NEED_PASSWORD
public static int NEED_PASSWORD
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
NOT_LOGGED_IN
public static int NOT_LOGGED_IN
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
PAGE_TYPE_UNKNOWN
public static int PAGE_TYPE_UNKNOWN
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
PATHNAME_CREATED
public static int PATHNAME_CREATED
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
RESTART_MARKER
public static int RESTART_MARKER
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
SERVICE_CLOSING_CONTROL_CONNECTION
public static int SERVICE_CLOSING_CONTROL_CONNECTION
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
SERVICE_NOT_AVAILABLE
public static int SERVICE_NOT_AVAILABLE
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
SERVICE_NOT_READY
public static int SERVICE_NOT_READY
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
SERVICE_READY
public static int SERVICE_READY
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
STORAGE_ALLOCATION_EXCEEDED
public static int STORAGE_ALLOCATION_EXCEEDED
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
SYNTAX_ERROR_IN_ARGUMENTS
public static int SYNTAX_ERROR_IN_ARGUMENTS
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
SYSTEM_STATUS
public static int SYSTEM_STATUS
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
TRANSFER_ABORTED
public static int TRANSFER_ABORTED
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
UNRECOGNIZED_COMMAND
public static int UNRECOGNIZED_COMMAND
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
USER_LOGGED_IN
public static int USER_LOGGED_IN
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
isNegativePermanent
public static boolean isNegativePermanent ( int reply )
Determine if a reply code is a negative permanent response. All codes beginning with a 5 are negative permanent responses. The FTP server will send a negative permanent response on the failure of a command that cannot be reattempted with success.

Parameters
TypeNameDescription
int reply The reply code to test.
Wiki javadoc Use textile entry format.
Add your comments here.
isNegativeTransient
public static boolean isNegativeTransient ( int reply )
Determine if a reply code is a negative transient response. All codes beginning with a 4 are negative transient responses. The FTP server will send a negative transient response on the failure of a command that can be reattempted with success.

Parameters
TypeNameDescription
int reply The reply code to test.
Wiki javadoc Use textile entry format.
Add your comments here.
isPositiveCompletion
public static boolean isPositiveCompletion ( int reply )
Determine if a reply code is a positive completion response. All codes beginning with a 2 are positive completion responses. The FTP server will send a positive completion response on the final successful completion of a command.

Parameters
TypeNameDescription
int reply The reply code to test.
Wiki javadoc Use textile entry format.
Add your comments here.
isPositiveIntermediate
public static boolean isPositiveIntermediate ( int reply )
Determine if a reply code is a positive intermediate response. All codes beginning with a 3 are positive intermediate responses. The FTP server will send a positive intermediate response on the successful completion of one part of a multi-part sequence of commands. For example, after a successful USER command, a positive intermediate response will be sent to indicate that the server is ready for the PASS command.

Parameters
TypeNameDescription
int reply The reply code to test.
Wiki javadoc Use textile entry format.
Add your comments here.
isPositivePreliminary
public static boolean isPositivePreliminary ( int reply )
Determine if a reply code is a positive preliminary response. All codes beginning with a 1 are positive preliminary responses. Postitive preliminary responses are used to indicate tentative success. No further commands can be issued to the FTP server after a positive preliminary response until a follow up response is received from the server.

Parameters
TypeNameDescription
int reply The reply code to test.
Wiki javadoc Use textile entry format.
Add your comments here.