com.googlecode.androidannotations.api.rest
Enum MediaType
java.lang.Object
java.lang.Enum<MediaType>
com.googlecode.androidannotations.api.rest.MediaType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MediaType>
public enum MediaType
- extends java.lang.Enum<MediaType>
Method Summary |
static MediaType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MediaType[] |
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 |
ALL
public static final MediaType ALL
APPLICATION_ATOM_XML
public static final MediaType APPLICATION_ATOM_XML
APPLICATION_RSS_XML
public static final MediaType APPLICATION_RSS_XML
APPLICATION_FORM_URLENCODED
public static final MediaType APPLICATION_FORM_URLENCODED
APPLICATION_JSON
public static final MediaType APPLICATION_JSON
APPLICATION_OCTET_STREAM
public static final MediaType APPLICATION_OCTET_STREAM
APPLICATION_XHTML_XML
public static final MediaType APPLICATION_XHTML_XML
IMAGE_GIF
public static final MediaType IMAGE_GIF
IMAGE_JPEG
public static final MediaType IMAGE_JPEG
IMAGE_PNG
public static final MediaType IMAGE_PNG
APPLICATION_XML
public static final MediaType APPLICATION_XML
APPLICATION_WILDCARD_XML
public static final MediaType APPLICATION_WILDCARD_XML
MULTIPART_FORM_DATA
public static final MediaType MULTIPART_FORM_DATA
TEXT_HTML
public static final MediaType TEXT_HTML
TEXT_PLAIN
public static final MediaType TEXT_PLAIN
TEXT_XML
public static final MediaType TEXT_XML
values
public static MediaType[] 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 (MediaType c : MediaType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MediaType 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
java.lang.NullPointerException
- if the argument is null
Copyright © 2010-2012. All Rights Reserved.