flux.notification
Class MailContentType

java.lang.Object
  extended by flux.notification.MailContentType
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class MailContentType
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

An enumeration of supported email content types.

Author:
Copyright 2014 Flux Corporation. All rights reserved.
See Also:
Serialized Form

Field Summary
static MailContentType TEXT_HTML
          The text/html email content type.
static MailContentType TEXT_PLAIN
          The text/plain email content type.
 
Method Summary
 java.lang.Object clone()
          Since MailContentType is an immutable enumeration, returns this instance of MailContentType.
static MailContentType getInstance(java.lang.String enumeration)
          Returns a pre-existing instance of this enumeration from the specified name.
 java.lang.String toString()
          Returns the name of the specific email content type enumeration item.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEXT_HTML

public static final MailContentType TEXT_HTML
The text/html email content type.


TEXT_PLAIN

public static final MailContentType TEXT_PLAIN
The text/plain email content type.

Method Detail

getInstance

public static MailContentType getInstance(java.lang.String enumeration)
Returns a pre-existing instance of this enumeration from the specified name.

Parameters:
enumeration - The name of a pre-existing instance of this enumeration.
Returns:
A pre-existing instance of this enumeration from the specified name.
Throws:
java.lang.IllegalArgumentException - If the name of the specified enumeration instance does not exist.

toString

public java.lang.String toString()
Returns the name of the specific email content type enumeration item.

Overrides:
toString in class java.lang.Object
Returns:
The name of the specific email content type enumeration item.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Since MailContentType is an immutable enumeration, returns this instance of MailContentType.

Overrides:
clone in class java.lang.Object
Returns:
This instance of MailContentType.
Throws:
java.lang.CloneNotSupportedException - If an error occurs.


© 2014 Flux Corporation. All rights reserved.