java.io.Serializable, java.lang.Comparable<ContentType>public enum ContentType extends java.lang.Enum<ContentType>
Created: 2008. 03. 26 AM 12:58:38
| Enum Constant | Description |
|---|---|
TEXT_APON |
|
TEXT_HTML |
|
TEXT_JSON |
|
TEXT_PLAIN |
|
TEXT_XML |
| Modifier and Type | Method | Description |
|---|---|---|
static ContentType |
resolve(java.lang.String alias) |
Returns a
ContentType with a value represented
by the specified String. |
java.lang.String |
toString() |
|
static ContentType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ContentType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentType TEXT_PLAIN
public static final ContentType TEXT_XML
public static final ContentType TEXT_JSON
public static final ContentType TEXT_APON
public static final ContentType TEXT_HTML
public static ContentType[] values()
for (ContentType c : ContentType.values()) System.out.println(c);
public static ContentType 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 toString()
toString in class java.lang.Enum<ContentType>public static ContentType resolve(java.lang.String alias)
ContentType with a value represented
by the specified String.alias - the content type as a StringContentType, may be nullCopyright © 2008–2018 The Aspectran Project. All rights reserved.