org.jboss.seam.mail.core.enumerations
Enum ContentDisposition

java.lang.Object
  extended by java.lang.Enum<ContentDisposition>
      extended by org.jboss.seam.mail.core.enumerations.ContentDisposition
All Implemented Interfaces:
Serializable, Comparable<ContentDisposition>

public enum ContentDisposition
extends Enum<ContentDisposition>

Defines the available Dispostions for attachments in an email Message.

INLINE is used where an attachment should be displayed in the body of the message such as a image reference in an HTML message body

ATTACHMENT is used for standard file attachments to a message.

Author:
Cody Lerum

Enum Constant Summary
ATTACHMENT
           
INLINE
           
 
Method Summary
 String headerValue()
           
static ContentDisposition mapValue(String value)
           
static ContentDisposition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContentDisposition[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ATTACHMENT

public static final ContentDisposition ATTACHMENT

INLINE

public static final ContentDisposition INLINE
Method Detail

values

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

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

valueOf

public static ContentDisposition valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

headerValue

public String headerValue()

mapValue

public static ContentDisposition mapValue(String value)


Copyright © 2011 Seam Framework. All Rights Reserved.