ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.oroinc.net.ftp.FTPReply

java.lang.Object
   |
   +----com.oroinc.net.ftp.FTPReply

public final class FTPReply
extends Object
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.

Copyright © 1997 Original Reusable Objects, Inc. All rights reserved.


Variable Index

 o ACTION_ABORTED
 o BAD_COMMAND_SEQUENCE
 o CANNOT_OPEN_DATA_CONNECTION
 o CLOSING_DATA_CONNECTION
 o CODE_110
 o CODE_120
 o CODE_125
 o CODE_150
 o CODE_200
 o CODE_202
 o CODE_211
 o CODE_212
 o CODE_213
 o CODE_214
 o CODE_215
 o CODE_220
 o CODE_221
 o CODE_225
 o CODE_226
 o CODE_227
 o CODE_230
 o CODE_250
 o CODE_257
 o CODE_331
 o CODE_332
 o CODE_350
 o CODE_421
 o CODE_425
 o CODE_426
 o CODE_450
 o CODE_451
 o CODE_452
 o CODE_500
 o CODE_501
 o CODE_502
 o CODE_503
 o CODE_504
 o CODE_530
 o CODE_532
 o CODE_550
 o CODE_551
 o CODE_552
 o CODE_553
 o COMMAND_IS_SUPERFLUOUS
 o COMMAND_NOT_IMPLEMENTED
 o COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER
 o COMMAND_OK
 o DATA_CONNECTION_ALREADY_OPEN
 o DATA_CONNECTION_OPEN
 o DIRECTORY_STATUS
 o ENTERING_PASSIVE_MODE
 o FILE_ACTION_NOT_TAKEN
 o FILE_ACTION_OK
 o FILE_ACTION_PENDING
 o FILE_NAME_NOT_ALLOWED
 o FILE_STATUS
 o FILE_STATUS_OK
 o FILE_UNAVAILABLE
 o HELP_MESSAGE
 o INSUFFICIENT_STORAGE
 o NAME_SYSTEM_TYPE
 o NEED_ACCOUNT
 o NEED_ACCOUNT_FOR_STORING_FILES
 o NEED_PASSWORD
 o NOT_LOGGED_IN
 o PAGE_TYPE_UNKNOWN
 o PATHNAME_CREATED
 o RESTART_MARKER
 o SERVICE_CLOSING_CONTROL_CONNECTION
 o SERVICE_NOT_AVAILABLE
 o SERVICE_NOT_READY
 o SERVICE_READY
 o STORAGE_ALLOCATION_EXCEEDED
 o SYNTAX_ERROR_IN_ARGUMENTS
 o SYSTEM_STATUS
 o TRANSFER_ABORTED
 o UNRECOGNIZED_COMMAND
 o USER_LOGGED_IN

Method Index

 o isNegativePermanent(int)
Determine if a reply code is a negative permanent response.
 o isNegativeTransient(int)
Determine if a reply code is a negative transient response.
 o isPositiveCompletion(int)
Determine if a reply code is a positive completion response.
 o isPositiveIntermediate(int)
Determine if a reply code is a positive intermediate response.
 o isPositivePreliminary(int)
Determine if a reply code is a positive preliminary response.

Variables

 o CODE_110
 public static final int CODE_110
 o CODE_120
 public static final int CODE_120
 o CODE_125
 public static final int CODE_125
 o CODE_150
 public static final int CODE_150
 o CODE_200
 public static final int CODE_200
 o CODE_202
 public static final int CODE_202
 o CODE_211
 public static final int CODE_211
 o CODE_212
 public static final int CODE_212
 o CODE_213
 public static final int CODE_213
 o CODE_214
 public static final int CODE_214
 o CODE_215
 public static final int CODE_215
 o CODE_220
 public static final int CODE_220
 o CODE_221
 public static final int CODE_221
 o CODE_225
 public static final int CODE_225
 o CODE_226
 public static final int CODE_226
 o CODE_227
 public static final int CODE_227
 o CODE_230
 public static final int CODE_230
 o CODE_250
 public static final int CODE_250
 o CODE_257
 public static final int CODE_257
 o CODE_331
 public static final int CODE_331
 o CODE_332
 public static final int CODE_332
 o CODE_350
 public static final int CODE_350
 o CODE_421
 public static final int CODE_421
 o CODE_425
 public static final int CODE_425
 o CODE_426
 public static final int CODE_426
 o CODE_450
 public static final int CODE_450
 o CODE_451
 public static final int CODE_451
 o CODE_452
 public static final int CODE_452
 o CODE_500
 public static final int CODE_500
 o CODE_501
 public static final int CODE_501
 o CODE_502
 public static final int CODE_502
 o CODE_503
 public static final int CODE_503
 o CODE_504
 public static final int CODE_504
 o CODE_530
 public static final int CODE_530
 o CODE_532
 public static final int CODE_532
 o CODE_550
 public static final int CODE_550
 o CODE_551
 public static final int CODE_551
 o CODE_552
 public static final int CODE_552
 o CODE_553
 public static final int CODE_553
 o RESTART_MARKER
 public static final int RESTART_MARKER
 o SERVICE_NOT_READY
 public static final int SERVICE_NOT_READY
 o DATA_CONNECTION_ALREADY_OPEN
 public static final int DATA_CONNECTION_ALREADY_OPEN
 o FILE_STATUS_OK
 public static final int FILE_STATUS_OK
 o COMMAND_OK
 public static final int COMMAND_OK
 o COMMAND_IS_SUPERFLUOUS
 public static final int COMMAND_IS_SUPERFLUOUS
 o SYSTEM_STATUS
 public static final int SYSTEM_STATUS
 o DIRECTORY_STATUS
 public static final int DIRECTORY_STATUS
 o FILE_STATUS
 public static final int FILE_STATUS
 o HELP_MESSAGE
 public static final int HELP_MESSAGE
 o NAME_SYSTEM_TYPE
 public static final int NAME_SYSTEM_TYPE
 o SERVICE_READY
 public static final int SERVICE_READY
 o SERVICE_CLOSING_CONTROL_CONNECTION
 public static final int SERVICE_CLOSING_CONTROL_CONNECTION
 o DATA_CONNECTION_OPEN
 public static final int DATA_CONNECTION_OPEN
 o CLOSING_DATA_CONNECTION
 public static final int CLOSING_DATA_CONNECTION
 o ENTERING_PASSIVE_MODE
 public static final int ENTERING_PASSIVE_MODE
 o USER_LOGGED_IN
 public static final int USER_LOGGED_IN
 o FILE_ACTION_OK
 public static final int FILE_ACTION_OK
 o PATHNAME_CREATED
 public static final int PATHNAME_CREATED
 o NEED_PASSWORD
 public static final int NEED_PASSWORD
 o NEED_ACCOUNT
 public static final int NEED_ACCOUNT
 o FILE_ACTION_PENDING
 public static final int FILE_ACTION_PENDING
 o SERVICE_NOT_AVAILABLE
 public static final int SERVICE_NOT_AVAILABLE
 o CANNOT_OPEN_DATA_CONNECTION
 public static final int CANNOT_OPEN_DATA_CONNECTION
 o TRANSFER_ABORTED
 public static final int TRANSFER_ABORTED
 o FILE_ACTION_NOT_TAKEN
 public static final int FILE_ACTION_NOT_TAKEN
 o ACTION_ABORTED
 public static final int ACTION_ABORTED
 o INSUFFICIENT_STORAGE
 public static final int INSUFFICIENT_STORAGE
 o UNRECOGNIZED_COMMAND
 public static final int UNRECOGNIZED_COMMAND
 o SYNTAX_ERROR_IN_ARGUMENTS
 public static final int SYNTAX_ERROR_IN_ARGUMENTS
 o COMMAND_NOT_IMPLEMENTED
 public static final int COMMAND_NOT_IMPLEMENTED
 o BAD_COMMAND_SEQUENCE
 public static final int BAD_COMMAND_SEQUENCE
 o COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER
 public static final int COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER
 o NOT_LOGGED_IN
 public static final int NOT_LOGGED_IN
 o NEED_ACCOUNT_FOR_STORING_FILES
 public static final int NEED_ACCOUNT_FOR_STORING_FILES
 o FILE_UNAVAILABLE
 public static final int FILE_UNAVAILABLE
 o PAGE_TYPE_UNKNOWN
 public static final int PAGE_TYPE_UNKNOWN
 o STORAGE_ALLOCATION_EXCEEDED
 public static final int STORAGE_ALLOCATION_EXCEEDED
 o FILE_NAME_NOT_ALLOWED
 public static final int FILE_NAME_NOT_ALLOWED

Methods

 o 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:
reply - The reply code to test.
Returns:
True if a reply code is a postive preliminary response, false if not.
 o 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:
reply - The reply code to test.
Returns:
True if a reply code is a postive completion response, false if not.
 o 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:
reply - The reply code to test.
Returns:
True if a reply code is a postive intermediate response, false if not.
 o 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:
reply - The reply code to test.
Returns:
True if a reply code is a negative transient response, false if not.
 o 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:
reply - The reply code to test.
Returns:
True if a reply code is a negative permanent response, false if not.

ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index