public enum MailContentType extends java.lang.Enum<MailContentType>
| Enum Constant and Description |
|---|
MULTIPART |
MULTIPART_ALTERNATIVE |
MULTIPART_MIXED |
TEXT_HTML |
TEXT_PLAIN |
TEXT_XML |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static MailContentType |
getEnumForValue(java.lang.String value)
returns the enum type for a value
|
java.lang.String |
getKey() |
java.lang.String |
getMimeType() |
static MailContentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MailContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailContentType TEXT_PLAIN
public static final MailContentType TEXT_HTML
public static final MailContentType TEXT_XML
public static final MailContentType MULTIPART
public static final MailContentType MULTIPART_MIXED
public static final MailContentType MULTIPART_ALTERNATIVE
public static final MailContentType UNKNOWN
public static MailContentType[] values()
for (MailContentType c : MailContentType.values()) System.out.println(c);
public static MailContentType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getKey()
public java.lang.String getMimeType()
public static MailContentType getEnumForValue(java.lang.String value)
value - the string valueCopyright © 2005-2014 FuseSource. All Rights Reserved.