Package org.bluezoo.gumdrop.smtp
Enum Class DSNNotify
- All Implemented Interfaces:
Serializable,Comparable<DSNNotify>,Constable
DSN notification types as defined in RFC 3461 §4.1 (NOTIFY parameter).
These values indicate when the sender wants to receive Delivery Status Notifications for a recipient:
NEVER- Never send DSN (mutually exclusive with others)SUCCESS- Send DSN on successful deliveryFAILURE- Send DSN on delivery failureDELAY- Send DSN if delivery is delayed
Multiple values (except NEVER) can be combined, e.g.,
NOTIFY=SUCCESS,FAILURE.
- Author:
- Chris Burdess
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
NEVER
Never send a DSN for this recipient. This is mutually exclusive with all other values. -
SUCCESS
Send a DSN when the message is successfully delivered. -
FAILURE
Send a DSN when delivery fails permanently. -
DELAY
Send a DSN when delivery is delayed (temporary failure).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
parse
Parses a DSN notify keyword.- Parameters:
keyword- the keyword to parse (case-insensitive)- Returns:
- the corresponding DSNNotify value
- Throws:
IllegalArgumentException- if the keyword is not recognized
-