| |
|
| java.lang.Object org.apache.commons.net.smtp.SMTPReply
SMTPReply | final public class SMTPReply (Code) | | 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. 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) | | |
ACTION_NOT_TAKEN | final public static int ACTION_NOT_TAKEN(Code) | | |
ACTION_OK | final public static int ACTION_OK(Code) | | |
BAD_COMMAND_SEQUENCE | final public static int BAD_COMMAND_SEQUENCE(Code) | | |
CODE_211 | final public static int CODE_211(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_250 | final public static int CODE_250(Code) | | |
CODE_251 | final public static int CODE_251(Code) | | |
CODE_354 | final public static int CODE_354(Code) | | |
CODE_421 | final public static int CODE_421(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_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) | | |
CODE_554 | final public static int CODE_554(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) | | |
HELP_MESSAGE | final public static int HELP_MESSAGE(Code) | | |
INSUFFICIENT_STORAGE | final public static int INSUFFICIENT_STORAGE(Code) | | |
MAILBOX_NAME_NOT_ALLOWED | final public static int MAILBOX_NAME_NOT_ALLOWED(Code) | | |
MAILBOX_UNAVAILABLE | final public static int MAILBOX_UNAVAILABLE(Code) | | |
SERVICE_CLOSING_TRANSMISSION_CHANNEL | final public static int SERVICE_CLOSING_TRANSMISSION_CHANNEL(Code) | | |
SERVICE_NOT_AVAILABLE | final public static int SERVICE_NOT_AVAILABLE(Code) | | |
SERVICE_READY | final public static int SERVICE_READY(Code) | | |
START_MAIL_INPUT | final public static int START_MAIL_INPUT(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) | | |
TRANSACTION_FAILED | final public static int TRANSACTION_FAILED(Code) | | |
UNRECOGNIZED_COMMAND | final public static int UNRECOGNIZED_COMMAND(Code) | | |
USER_NOT_LOCAL | final public static int USER_NOT_LOCAL(Code) | | |
USER_NOT_LOCAL_WILL_FORWARD | final public static int USER_NOT_LOCAL_WILL_FORWARD(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 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. 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 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. 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 SMTP 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 SMTP 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 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. 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 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. True if a reply code is a postive preliminary response, falseif not. |
|
|
|