public enum MediaType extends Enum<MediaType>
| Enum Constant and Description |
|---|
APPLICATION_ATOM_XML |
APPLICATION_FORM_URLENCODED |
APPLICATION_JSON |
APPLICATION_OCTET_STREAM |
APPLICATION_SVG_XML |
APPLICATION_XHTML_XML |
APPLICATION_XML |
MULTIPART_FORM_DATA |
TEXT_HTML |
TEXT_PLAIN |
TEXT_XML |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
valueOf(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.
|
public static final MediaType APPLICATION_XML
public static final MediaType APPLICATION_ATOM_XML
public static final MediaType APPLICATION_XHTML_XML
public static final MediaType APPLICATION_SVG_XML
public static final MediaType APPLICATION_JSON
public static final MediaType APPLICATION_FORM_URLENCODED
public static final MediaType MULTIPART_FORM_DATA
public static final MediaType APPLICATION_OCTET_STREAM
public static final MediaType TEXT_PLAIN
public static final MediaType TEXT_XML
public static final MediaType TEXT_HTML
public final String key
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.