Enum MessageTransaction.Reason
- java.lang.Object
-
- java.lang.Enum<MessageTransaction.Reason>
-
- com.levigo.jadice.server.agent.email.MessageTransaction.Reason
-
- All Implemented Interfaces:
Serializable
,Comparable<MessageTransaction.Reason>
- Enclosing interface:
- MessageTransaction
public static enum MessageTransaction.Reason extends Enum<MessageTransaction.Reason>
Reasons for denying the Transaction.- See Also:
- "RFC 2821, section 4.2.3"
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_IN_PROCESSING
INSUFFICIENT_STORAGE
MBOX_NOT_FOUND
MBOX_UNAVAILABLE
SERVICE_UNAVAILABLE
TOO_LARGE
TRANSACTION_FAILED
-
Field Summary
Fields Modifier and Type Field Description boolean
isTransient
int
smtpCode
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageTransaction.Reason
valueOf(String name)
Returns the enum constant of this type with the specified name.static MessageTransaction.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVICE_UNAVAILABLE
public static final MessageTransaction.Reason SERVICE_UNAVAILABLE
-
MBOX_UNAVAILABLE
public static final MessageTransaction.Reason MBOX_UNAVAILABLE
-
ERROR_IN_PROCESSING
public static final MessageTransaction.Reason ERROR_IN_PROCESSING
-
INSUFFICIENT_STORAGE
public static final MessageTransaction.Reason INSUFFICIENT_STORAGE
-
MBOX_NOT_FOUND
public static final MessageTransaction.Reason MBOX_NOT_FOUND
-
TOO_LARGE
public static final MessageTransaction.Reason TOO_LARGE
-
TRANSACTION_FAILED
public static final MessageTransaction.Reason TRANSACTION_FAILED
-
-
Method Detail
-
values
public static MessageTransaction.Reason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageTransaction.Reason c : MessageTransaction.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageTransaction.Reason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-