|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MessagingField>
com.openexchange.messaging.MessagingField
public enum MessagingField
| Enum Constant Summary | |
|---|---|
ACCOUNT_NAME
Account name [low cost] |
|
BCC
Bcc [low cost] |
|
BODY
To peek the mail body (\Seen flag is left unchanged) [high cost] |
|
CC
Cc [low cost] |
|
COLOR_LABEL
Color Label [low cost] |
|
CONTENT_TYPE
The Content-Type; includes whether message contains attachments or not [low cost] |
|
DISPOSITION_NOTIFICATION_TO
Email address in Disposition-Notification-To header[low cost] |
|
FLAGS
Flags [low cost] |
|
FOLDER_ID
The folder ID or fullname [low cost] |
|
FROM
From [low cost] |
|
FULL
To fully pre-fill mail incl. headers and peeked body (\Seen flag is left unchanged) [high cost] |
|
HEADERS
To fetch all message headers [high cost] |
|
ID
The implementation-specific unique message ID [low cost] |
|
PICTURE
Picture url [low cost] |
|
PRIORITY
Integer value of X-Priority header[low cost] |
|
RECEIVED_DATE
Received date represent the internal mail server's timestamp on arrival [low cost] |
|
SENT_DATE
Sent date corresponds to Date header[low cost] |
|
SIZE
Size [low cost] |
|
SUBJECT
Subject [low cost] |
|
THREAD_LEVEL
Thread level [low cost] |
|
TO
To [low cost] |
|
URL
URL [low cost] |
|
| Field Summary | |
|---|---|
static MessagingField[] |
FIELDS_LOW_COST
All low cost fields |
static MessagingField[] |
FIELDS_WO_BODY
All fields except BODY and FULL |
| Method Summary | |
|---|---|
java.lang.Object |
doSwitch(MessagingMessageSwitcher switcher,
java.lang.Object... args)
|
MessagingHeader.KnownHeader |
getEquivalentHeader()
Maps a MessagingField to a MessagingHeader |
static MessagingField |
getField(java.lang.String name)
Maps specified name to a field. |
static MessagingField[] |
getFields(java.lang.String[] names)
Creates an array of MessagingField corresponding to given names. |
static void |
initHeaders()
|
java.lang.String |
toString()
|
static MessagingField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MessagingField[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MessagingField ID
public static final MessagingField FOLDER_ID
public static final MessagingField CONTENT_TYPE
public static final MessagingField FROM
public static final MessagingField TO
public static final MessagingField CC
public static final MessagingField BCC
public static final MessagingField SUBJECT
public static final MessagingField SIZE
public static final MessagingField SENT_DATE
Date header
public static final MessagingField RECEIVED_DATE
public static final MessagingField FLAGS
public static final MessagingField THREAD_LEVEL
public static final MessagingField DISPOSITION_NOTIFICATION_TO
Disposition-Notification-To header
public static final MessagingField PRIORITY
X-Priority header
public static final MessagingField COLOR_LABEL
public static final MessagingField ACCOUNT_NAME
public static final MessagingField PICTURE
public static final MessagingField BODY
public static final MessagingField HEADERS
public static final MessagingField FULL
public static final MessagingField URL
| Field Detail |
|---|
public static final MessagingField[] FIELDS_LOW_COST
public static final MessagingField[] FIELDS_WO_BODY
BODY and FULL
| Method Detail |
|---|
public static final MessagingField[] values()
for(MessagingField c : MessagingField.values())
System.out.println(c);
public static MessagingField 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 namepublic java.lang.String toString()
toString in class java.lang.Enum<MessagingField>public static final MessagingField[] getFields(java.lang.String[] names)
MessagingField corresponding to given names.
This is just a convenience method that invokes getField(String) for every name.
names - The names
MessagingField corresponding to given namesgetField(String)public static MessagingField getField(java.lang.String name)
name - The field name
MessagingField or null if no corresponding mail field could be found
public java.lang.Object doSwitch(MessagingMessageSwitcher switcher,
java.lang.Object... args)
throws MessagingException
MessagingExceptionpublic MessagingHeader.KnownHeader getEquivalentHeader()
public static void initHeaders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||