Package org.apache.commons.net.smtp
Class SMTPReply
java.lang.Object
org.apache.commons.net.smtp.SMTPReply
SMTPReply stores a set of constants for SMTP reply codes. To interpret the meaning of the codes, familiarity with RFC 821 is assumed. The mnemonic constant
 names are transcriptions from the code descriptions of RFC 821.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intSMTP reply code 451.static final intSMTP reply code 450.static final intSMTP reply code 250.static final intSMTP reply code 503.static final intSMTP reply code 502.static final intSMTP reply code 504.static final intSMTP reply code 214.static final intSMTP reply code 452.static final intSMTP reply code 553.static final intSMTP reply code 550.static final intSMTP reply code 221.static final intSMTP reply code 421.static final intSMTP reply code 220.static final intSMTP reply code 354.static final intSMTP reply code 552.static final intSMTP reply code 501.static final intSMTP reply code 211.static final intSMTP reply code 554.static final intSMTP reply code 500.static final intSMTP reply code 551.static final intSMTP reply code 251.
- 
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.
- 
Field Details- 
SYSTEM_STATUSSMTP reply code 211.- See Also:
 
- 
HELP_MESSAGESMTP reply code 214.- See Also:
 
- 
SERVICE_READYSMTP reply code 220.- See Also:
 
- 
SERVICE_CLOSING_TRANSMISSION_CHANNELSMTP reply code 221.- See Also:
 
- 
ACTION_OKSMTP reply code 250.- See Also:
 
- 
USER_NOT_LOCAL_WILL_FORWARDSMTP reply code 251.- See Also:
 
- 
START_MAIL_INPUTSMTP reply code 354.- See Also:
 
- 
SERVICE_NOT_AVAILABLESMTP reply code 421.- See Also:
 
- 
ACTION_NOT_TAKENSMTP reply code 450.- See Also:
 
- 
ACTION_ABORTEDSMTP reply code 451.- See Also:
 
- 
INSUFFICIENT_STORAGESMTP reply code 452.- See Also:
 
- 
UNRECOGNIZED_COMMANDSMTP reply code 500.- See Also:
 
- 
SYNTAX_ERROR_IN_ARGUMENTSSMTP reply code 501.- See Also:
 
- 
COMMAND_NOT_IMPLEMENTEDSMTP reply code 502.- See Also:
 
- 
BAD_COMMAND_SEQUENCESMTP reply code 503.- See Also:
 
- 
COMMAND_NOT_IMPLEMENTED_FOR_PARAMETERSMTP reply code 504.- See Also:
 
- 
MAILBOX_UNAVAILABLESMTP reply code 550.- See Also:
 
- 
USER_NOT_LOCALSMTP reply code 551.- See Also:
 
- 
STORAGE_ALLOCATION_EXCEEDEDSMTP reply code 552.- See Also:
 
- 
MAILBOX_NAME_NOT_ALLOWEDSMTP reply code 553.- See Also:
 
- 
TRANSACTION_FAILEDSMTP reply code 554.- 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 SMTP 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 SMTP 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 SMTP 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 SMTP 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 DATA command, a positive intermediate response will be sent to indicate that the server is ready to receive the message data.- 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. Positive preliminary responses are used to indicate tentative success. No further commands can be issued to the SMTP server after a positive preliminary response until a follow-up response is received from the server.Note: No SMTP commands defined in RFC 822 provide this type of reply. - Parameters:
- reply- The reply code to test.
- Returns:
- True if a reply code is a positive preliminary response, false if not.
 
 
-