public enum MailState extends Enum<MailState>
Enum Constant and Description |
---|
PREPARE_ERROR
Error was encountered during mail preparation, no message available for sending.
|
PREPARE_SUCCESS
Mail prepared successfully and ready to be sent.
|
SEND_ERROR
Error was encountered during sending mail.
|
SEND_FATAL_ERROR
Error was encountered while retrieving mail for sending.
|
SEND_SUCCESS
Mail sent with success.
|
Modifier and Type | Method and Description |
---|---|
static MailState |
parse(String state)
Create a MailState object from a String.
|
String |
toString() |
static MailState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MailState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailState PREPARE_SUCCESS
public static final MailState PREPARE_ERROR
public static final MailState SEND_SUCCESS
public static final MailState SEND_ERROR
public static final MailState SEND_FATAL_ERROR
public static MailState[] values()
for (MailState c : MailState.values()) System.out.println(c);
public static MailState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
public static MailState parse(String state)
state
- the state represented as a stringIllegalArgumentException
- if the passed stated is invalidCopyright © 2004–2019 XWiki. All rights reserved.