com.openexchange.messaging
Enum MessagingHeader.KnownHeader

java.lang.Object
  extended by java.lang.Enum<MessagingHeader.KnownHeader>
      extended by com.openexchange.messaging.MessagingHeader.KnownHeader
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MessagingHeader.KnownHeader>
Enclosing interface:
MessagingHeader

public static enum MessagingHeader.KnownHeader
extends java.lang.Enum<MessagingHeader.KnownHeader>

An enumeration of known headers.


Enum Constant Summary
ACCOUNT_NAME
          Account name
BCC
          Bcc
CC
          Cc
CONTENT_DISPOSITION
          Content-Disposition
CONTENT_TRANSFER_ENCODING
          Content-Transfer-Encoding
CONTENT_TYPE
          Content-Type
DATE
          Date
DISPOSITION_NOTIFICATION_TO
          Disposition-Notification-To
FROM
          From
IN_REPLY_TO
          In-Reply-To
MAILER
          X-Mailer
MESSAGE_ID
          Message-Id
MESSAGE_TYPE
          X-Message-Type
MIME_VERSION
          MIME-Version
PRIORITY
          X-Priority
REFERENCES
          References
REPLY_TO
          Reply-To
SENT_DATE
          Date
SUBJECT
          Subject
TO
          To
 
Method Summary
 MessagingField getEquivalentField()
          Maps a MessagingHeader to a MessagingField
 java.lang.String toString()
           
static MessagingHeader.KnownHeader valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessagingHeader.KnownHeader[] 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

ACCOUNT_NAME

public static final MessagingHeader.KnownHeader ACCOUNT_NAME
Account name


BCC

public static final MessagingHeader.KnownHeader BCC
Bcc


CC

public static final MessagingHeader.KnownHeader CC
Cc


CONTENT_TYPE

public static final MessagingHeader.KnownHeader CONTENT_TYPE
Content-Type


CONTENT_DISPOSITION

public static final MessagingHeader.KnownHeader CONTENT_DISPOSITION
Content-Disposition


CONTENT_TRANSFER_ENCODING

public static final MessagingHeader.KnownHeader CONTENT_TRANSFER_ENCODING
Content-Transfer-Encoding


FROM

public static final MessagingHeader.KnownHeader FROM
From


IN_REPLY_TO

public static final MessagingHeader.KnownHeader IN_REPLY_TO
In-Reply-To


MESSAGE_ID

public static final MessagingHeader.KnownHeader MESSAGE_ID
Message-Id


MIME_VERSION

public static final MessagingHeader.KnownHeader MIME_VERSION
MIME-Version


PRIORITY

public static final MessagingHeader.KnownHeader PRIORITY
X-Priority


REFERENCES

public static final MessagingHeader.KnownHeader REFERENCES
References


DISPOSITION_NOTIFICATION_TO

public static final MessagingHeader.KnownHeader DISPOSITION_NOTIFICATION_TO
Disposition-Notification-To


REPLY_TO

public static final MessagingHeader.KnownHeader REPLY_TO
Reply-To


SENT_DATE

public static final MessagingHeader.KnownHeader SENT_DATE
Date


SUBJECT

public static final MessagingHeader.KnownHeader SUBJECT
Subject


TO

public static final MessagingHeader.KnownHeader TO
To


DATE

public static final MessagingHeader.KnownHeader DATE
Date


MESSAGE_TYPE

public static final MessagingHeader.KnownHeader MESSAGE_TYPE
X-Message-Type


MAILER

public static final MessagingHeader.KnownHeader MAILER
X-Mailer

Method Detail

values

public static final MessagingHeader.KnownHeader[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MessagingHeader.KnownHeader c : MessagingHeader.KnownHeader.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MessagingHeader.KnownHeader valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<MessagingHeader.KnownHeader>

getEquivalentField

public MessagingField getEquivalentField()
Maps a MessagingHeader to a MessagingField

Returns:
The MessagingField this field is associated with