| |
|
| java.lang.Object org.apache.commons.net.ftp.FTPReply
FTPReply | final public class FTPReply (Code) | | 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.
author: Daniel F. Savarese |
Method Summary | |
public static boolean | isNegativePermanent(int reply) Determine if a reply code is a negative permanent response. | public static boolean | isNegativeTransient(int reply) Determine if a reply code is a negative transient response. | public static boolean | isPositiveCompletion(int reply) Determine if a reply code is a positive completion response. | public static boolean | isPositiveIntermediate(int reply) Determine if a reply code is a positive intermediate response. | public static boolean | isPositivePreliminary(int reply) Determine if a reply code is a positive preliminary response. |
ACTION_ABORTED | final public static int ACTION_ABORTED(Code) | | |
BAD_COMMAND_SEQUENCE | final public static int BAD_COMMAND_SEQUENCE(Code) | | |
CANNOT_OPEN_DATA_CONNECTION | final public static int CANNOT_OPEN_DATA_CONNECTION(Code) | | |
CLOSING_DATA_CONNECTION | final public static int CLOSING_DATA_CONNECTION(Code) | | |
CODE_110 | final public static int CODE_110(Code) | | |
CODE_120 | final public static int CODE_120(Code) | | |
CODE_125 | final public static int CODE_125(Code) | | |
CODE_150 | final public static int CODE_150(Code) | | |
CODE_200 | final public static int CODE_200(Code) | | |
CODE_202 | final public static int CODE_202(Code) | | |
CODE_211 | final public static int CODE_211(Code) | | |
CODE_212 | final public static int CODE_212(Code) | | |
CODE_213 | final public static int CODE_213(Code) | | |
CODE_214 | final public static int CODE_214(Code) | | |
CODE_215 | final public static int CODE_215(Code) | | |
CODE_220 | final public static int CODE_220(Code) | | |
CODE_221 | final public static int CODE_221(Code) | | |
CODE_225 | final public static int CODE_225(Code) | | |
CODE_226 | final public static int CODE_226(Code) | | |
CODE_227 | final public static int CODE_227(Code) | | |
CODE_230 | final public static int CODE_230(Code) | | |
CODE_250 | final public static int CODE_250(Code) | | |
CODE_257 | final public static int CODE_257(Code) | | |
CODE_331 | final public static int CODE_331(Code) | | |
CODE_332 | final public static int CODE_332(Code) | | |
CODE_350 | final public static int CODE_350(Code) | | |
CODE_421 | final public static int CODE_421(Code) | | |
CODE_425 | final public static int CODE_425(Code) | | |
CODE_426 | final public static int CODE_426(Code) | | |
CODE_450 | final public static int CODE_450(Code) | | |
CODE_451 | final public static int CODE_451(Code) | | |
CODE_452 | final public static int CODE_452(Code) | | |
CODE_500 | final public static int CODE_500(Code) | | |
CODE_501 | final public static int CODE_501(Code) | | |
CODE_502 | final public static int CODE_502(Code) | | |
CODE_503 | final public static int CODE_503(Code) | | |
CODE_504 | final public static int CODE_504(Code) | | |
CODE_521 | final public static int CODE_521(Code) | | |
CODE_530 | final public static int CODE_530(Code) | | |
CODE_532 | final public static int CODE_532(Code) | | |
CODE_550 | final public static int CODE_550(Code) | | |
CODE_551 | final public static int CODE_551(Code) | | |
CODE_552 | final public static int CODE_552(Code) | | |
CODE_553 | final public static int CODE_553(Code) | | |
COMMAND_IS_SUPERFLUOUS | final public static int COMMAND_IS_SUPERFLUOUS(Code) | | |
COMMAND_NOT_IMPLEMENTED | final public static int COMMAND_NOT_IMPLEMENTED(Code) | | |
COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER | final public static int COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER(Code) | | |
COMMAND_OK | final public static int COMMAND_OK(Code) | | |
DATA_CONNECTION_ALREADY_OPEN | final public static int DATA_CONNECTION_ALREADY_OPEN(Code) | | |
DATA_CONNECTION_OPEN | final public static int DATA_CONNECTION_OPEN(Code) | | |
DIRECTORY_STATUS | final public static int DIRECTORY_STATUS(Code) | | |
ENTERING_PASSIVE_MODE | final public static int ENTERING_PASSIVE_MODE(Code) | | |
FILE_ACTION_NOT_TAKEN | final public static int FILE_ACTION_NOT_TAKEN(Code) | | |
FILE_ACTION_OK | final public static int FILE_ACTION_OK(Code) | | |
FILE_ACTION_PENDING | final public static int FILE_ACTION_PENDING(Code) | | |
FILE_NAME_NOT_ALLOWED | final public static int FILE_NAME_NOT_ALLOWED(Code) | | |
FILE_STATUS | final public static int FILE_STATUS(Code) | | |
FILE_STATUS_OK | final public static int FILE_STATUS_OK(Code) | | |
FILE_UNAVAILABLE | final public static int FILE_UNAVAILABLE(Code) | | |
HELP_MESSAGE | final public static int HELP_MESSAGE(Code) | | |
INSUFFICIENT_STORAGE | final public static int INSUFFICIENT_STORAGE(Code) | | |
NAME_SYSTEM_TYPE | final public static int NAME_SYSTEM_TYPE(Code) | | |
NEED_ACCOUNT | final public static int NEED_ACCOUNT(Code) | | |
NEED_ACCOUNT_FOR_STORING_FILES | final public static int NEED_ACCOUNT_FOR_STORING_FILES(Code) | | |
NEED_PASSWORD | final public static int NEED_PASSWORD(Code) | | |
NOT_LOGGED_IN | final public static int NOT_LOGGED_IN(Code) | | |
PAGE_TYPE_UNKNOWN | final public static int PAGE_TYPE_UNKNOWN(Code) | | |
PATHNAME_CREATED | final public static int PATHNAME_CREATED(Code) | | |
RESTART_MARKER | final public static int RESTART_MARKER(Code) | | |
SERVICE_CLOSING_CONTROL_CONNECTION | final public static int SERVICE_CLOSING_CONTROL_CONNECTION(Code) | | |
SERVICE_NOT_AVAILABLE | final public static int SERVICE_NOT_AVAILABLE(Code) | | |
SERVICE_NOT_READY | final public static int SERVICE_NOT_READY(Code) | | |
SERVICE_READY | final public static int SERVICE_READY(Code) | | |
STORAGE_ALLOCATION_EXCEEDED | final public static int STORAGE_ALLOCATION_EXCEEDED(Code) | | |
SYNTAX_ERROR_IN_ARGUMENTS | final public static int SYNTAX_ERROR_IN_ARGUMENTS(Code) | | |
SYSTEM_STATUS | final public static int SYSTEM_STATUS(Code) | | |
TRANSFER_ABORTED | final public static int TRANSFER_ABORTED(Code) | | |
UNRECOGNIZED_COMMAND | final public static int UNRECOGNIZED_COMMAND(Code) | | |
USER_LOGGED_IN | final public static int USER_LOGGED_IN(Code) | | |
isNegativePermanent | public static boolean isNegativePermanent(int reply)(Code) | | 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. True if a reply code is a negative permanent response, falseif not. |
isNegativeTransient | public static boolean isNegativeTransient(int reply)(Code) | | 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. True if a reply code is a negative transient response, falseif not. |
isPositiveCompletion | public static boolean isPositiveCompletion(int reply)(Code) | | 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. True if a reply code is a postive completion response, falseif not. |
isPositiveIntermediate | public static boolean isPositiveIntermediate(int reply)(Code) | | 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. True if a reply code is a postive intermediate response, falseif not. |
isPositivePreliminary | public static boolean isPositivePreliminary(int reply)(Code) | | 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. True if a reply code is a postive preliminary response, falseif not. |
|
|
|