Package org.apache.commons.net.ftp
Class FTPReply
java.lang.Object
org.apache.commons.net.ftp.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.
 
TODO replace with an enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intReply code 451.static final intReply code 503.static final intFTPS reply code 522static final intReply code 425.static final intReply code 226.static final intReply code 202.static final intReply code 502.static final intReply code 504.static final intReply code 200.static final intReply code 125.static final intReply code 225.static final intFTPS reply code 533static final intReply code 212.static final intReply code 229.static final intReply code 227.static final intIPv6 error codes.static final intFTPS reply code 535static final intReply code 450.static final intReply code 250.static final intReply code 350.static final intReply code 553.static final intReply code 213.static final intReply code 150.static final intReply code 550.static final intReply code 214.static final intReply code 452.static final intReply code 215.static final intReply code 332.static final intReply code 532.static final intReply code 331.static final intReply code 530.static final intReply code 551.static final intReply code 257.static final intFTPS reply code 534static final intFTPS reply code 536static final intReply code 110.static final intFTPS reply code 234static final intFTPS reply code 235static final intFTPS reply code 335static final intFTPS reply code 334static final intReply code 221.static final intReply code 421.static final intReply code 120.static final intReply code 220.static final intReply code 552.static final intReply code 501.static final intReply code 211.static final intReply code 426.static final intFTPS reply code 431static final intReply code 500.static final intReply code 230.
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanisNegativePermanent(int reply) Tests if a reply code is a negative permanent response.static booleanisNegativeTransient(int reply) Tests if a reply code is a negative transient response.static booleanisPositiveCompletion(int reply) Tests if a reply code is a positive completion response.static booleanisPositiveIntermediate(int reply) Tests if a reply code is a positive intermediate response.static booleanisPositivePreliminary(int reply) Tests if a reply code is a positive preliminary response.static booleanisProtectedReplyCode(int reply) Tests if a reply code is a protected response.
- 
Field Details- 
RESTART_MARKERReply code 110.- See Also:
 
- 
SERVICE_NOT_READYReply code 120.- See Also:
 
- 
DATA_CONNECTION_ALREADY_OPENReply code 125.- See Also:
 
- 
FILE_STATUS_OKReply code 150.- See Also:
 
- 
COMMAND_OKReply code 200.- See Also:
 
- 
COMMAND_IS_SUPERFLUOUSReply code 202.- See Also:
 
- 
SYSTEM_STATUSReply code 211.- See Also:
 
- 
DIRECTORY_STATUSReply code 212.- See Also:
 
- 
FILE_STATUSReply code 213.- See Also:
 
- 
HELP_MESSAGEReply code 214.- See Also:
 
- 
NAME_SYSTEM_TYPEReply code 215.- See Also:
 
- 
SERVICE_READYReply code 220.- See Also:
 
- 
SERVICE_CLOSING_CONTROL_CONNECTIONReply code 221.- See Also:
 
- 
DATA_CONNECTION_OPENReply code 225.- See Also:
 
- 
CLOSING_DATA_CONNECTIONReply code 226.- See Also:
 
- 
ENTERING_PASSIVE_MODEReply code 227.- See Also:
 
- 
ENTERING_EPSV_MODEReply code 229.- Since:
- 2.2
- See Also:
 
- 
USER_LOGGED_INReply code 230.- See Also:
 
- 
FILE_ACTION_OKReply code 250.- See Also:
 
- 
PATHNAME_CREATEDReply code 257.- See Also:
 
- 
NEED_PASSWORDReply code 331.- See Also:
 
- 
NEED_ACCOUNTReply code 332.- See Also:
 
- 
FILE_ACTION_PENDINGReply code 350.- See Also:
 
- 
SERVICE_NOT_AVAILABLEReply code 421.- See Also:
 
- 
CANNOT_OPEN_DATA_CONNECTIONReply code 425.- See Also:
 
- 
TRANSFER_ABORTEDReply code 426.- See Also:
 
- 
FILE_ACTION_NOT_TAKENReply code 450.- See Also:
 
- 
ACTION_ABORTEDReply code 451.- See Also:
 
- 
INSUFFICIENT_STORAGEReply code 452.- See Also:
 
- 
UNRECOGNIZED_COMMANDReply code 500.- See Also:
 
- 
SYNTAX_ERROR_IN_ARGUMENTSReply code 501.- See Also:
 
- 
COMMAND_NOT_IMPLEMENTEDReply code 502.- See Also:
 
- 
BAD_COMMAND_SEQUENCEReply code 503.- See Also:
 
- 
COMMAND_NOT_IMPLEMENTED_FOR_PARAMETERReply code 504.- See Also:
 
- 
NOT_LOGGED_INReply code 530.- See Also:
 
- 
NEED_ACCOUNT_FOR_STORING_FILESReply code 532.- See Also:
 
- 
FILE_UNAVAILABLEReply code 550.- See Also:
 
- 
PAGE_TYPE_UNKNOWNReply code 551.- See Also:
 
- 
STORAGE_ALLOCATION_EXCEEDEDReply code 552.- See Also:
 
- 
FILE_NAME_NOT_ALLOWEDReply code 553.- See Also:
 
- 
SECURITY_DATA_EXCHANGE_COMPLETEFTPS reply code 234- Since:
- 2.0
- See Also:
 
- 
SECURITY_DATA_EXCHANGE_SUCCESSFULLYFTPS reply code 235- Since:
- 2.0
- See Also:
 
- 
SECURITY_MECHANISM_IS_OKFTPS reply code 334- Since:
- 2.0
- See Also:
 
- 
SECURITY_DATA_IS_ACCEPTABLEFTPS reply code 335- Since:
- 2.0
- See Also:
 
- 
UNAVAILABLE_RESOURCEFTPS reply code 431- Since:
- 2.0
- See Also:
 
- 
BAD_TLS_NEGOTIATION_OR_DATA_ENCRYPTION_REQUIREDFTPS reply code 522- Since:
- 2.0
- See Also:
 
- 
DENIED_FOR_POLICY_REASONSFTPS reply code 533- Since:
- 2.0
- See Also:
 
- 
REQUEST_DENIEDFTPS reply code 534- Since:
- 2.0
- See Also:
 
- 
FAILED_SECURITY_CHECKFTPS reply code 535- Since:
- 2.0
- See Also:
 
- 
REQUESTED_PROT_LEVEL_NOT_SUPPORTEDFTPS reply code 536- Since:
- 2.0
- See Also:
 
- 
EXTENDED_PORT_FAILUREIPv6 error codes.Note this is also used as an FTPS error code reply - Since:
- 2.2
- See Also:
 
 
- 
- 
Method Details- 
isNegativePermanentTests 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.
 
- 
isNegativeTransientTests 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.
 
- 
isPositiveCompletionTests 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 positive completion response, false if not.
 
- 
isPositiveIntermediateTests 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 multipart 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 positive intermediate response, false if not.
 
- 
isPositivePreliminaryTests 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 positive preliminary response, false if not.
 
- 
isProtectedReplyCodeTests if a reply code is a protected response.- Parameters:
- reply- The reply code to test.
- Returns:
- True if a reply code is a protected response, false if not.
- Since:
- 3.0
 
 
-