public class EnhancedStatus extends Object implements MailSystemStatus
| Modifier and Type | Class and Description |
|---|---|
static class |
EnhancedStatus.StatusClass |
| Modifier and Type | Field and Description |
|---|---|
static EnhancedStatus |
BAD_DESTINATION_MAILBOX_ADDRESS_SYNTAX |
static EnhancedStatus |
BAD_DESTINATION_SYSTEM_ADDRESS |
static EnhancedStatus |
BAD_MESSAGE_BODY |
static EnhancedStatus |
INCORRECT_CONFIGURATION |
static EnhancedStatus |
MAIL_SYSTEM_FULL |
static EnhancedStatus |
PERMANENT_INTERNAL_ERROR |
static EnhancedStatus |
PERMANENT_UNABLE_TO_ROUTE |
static EnhancedStatus |
TRANSIENT_DIRECTORY_SERVER_FAILURE |
static EnhancedStatus |
TRANSIENT_LOCAL_ERROR_IN_PROCESSING |
static EnhancedStatus |
TRANSIENT_SYSTEM_NOT_ACCEPTING_NETWORK_MESSAGES |
| Constructor and Description |
|---|
EnhancedStatus(int smtpReplyCode,
String enhancedStatusCode,
String message) |
EnhancedStatus(Rfc821Status response) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDiagnosticCode()
Returns the original response without any parsing, for example old SMTP
and new enhanced codes are included on every line (if they were present).
|
String |
getEnhancedStatusCode() |
String |
getMessage()
Returns the extracted text message, SMTP and enhanced status codes are
removed.
|
String |
getMessagePrefixedWithEnhancedStatusCode() |
int |
getSmtpReplyCode()
returns the original 3 digit reply codes, compatible with the original
SMTP RFC.
|
int |
hashCode() |
boolean |
shouldRetry()
it returns true, if repeating the action may help
|
String |
toString() |
public static final EnhancedStatus TRANSIENT_SYSTEM_NOT_ACCEPTING_NETWORK_MESSAGES
public static final EnhancedStatus TRANSIENT_DIRECTORY_SERVER_FAILURE
public static final EnhancedStatus BAD_DESTINATION_SYSTEM_ADDRESS
public static final EnhancedStatus PERMANENT_UNABLE_TO_ROUTE
public static final EnhancedStatus TRANSIENT_LOCAL_ERROR_IN_PROCESSING
public static final EnhancedStatus MAIL_SYSTEM_FULL
public static final EnhancedStatus BAD_DESTINATION_MAILBOX_ADDRESS_SYNTAX
public static final EnhancedStatus PERMANENT_INTERNAL_ERROR
public static final EnhancedStatus BAD_MESSAGE_BODY
public static final EnhancedStatus INCORRECT_CONFIGURATION
public EnhancedStatus(int smtpReplyCode,
String enhancedStatusCode,
String message)
public EnhancedStatus(Rfc821Status response)
public int getSmtpReplyCode()
MailSystemStatusgetSmtpReplyCode in interface MailSystemStatuspublic String getEnhancedStatusCode()
public String getMessage()
MailSystemStatusgetMessage in interface MailSystemStatuspublic boolean shouldRetry()
public String getMessagePrefixedWithEnhancedStatusCode()
public String getDiagnosticCode()
MailSystemStatuspublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object