|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MediaType>
com.eclipsesource.restfuse.MediaType
public enum MediaType
The MediaType
enumeration contains values that can be used within a request as
the request's content type.
Request
,
Response
Method Summary | |
---|---|
static MediaType |
fromString(java.lang.String type)
The fromString() method tries to convert a mime-type to the equivalent
MediaType . |
java.lang.String |
getMimeType()
|
java.lang.String |
toString()
|
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 |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MediaType APPLICATION_ATOM_XML
public static final MediaType APPLICATION_FORM_URLENCODED
public static final MediaType APPLICATION_JSON
public static final MediaType APPLICATION_OCTET_STREAM
public static final MediaType APPLICATION_SVG_XML
public static final MediaType APPLICATION_XHTML_XML
public static final MediaType APPLICATION_XML
public static final MediaType MULTIPART_FORM_DATA
public static final MediaType TEXT_HTML
public static final MediaType TEXT_PLAIN
public static final MediaType TEXT_XML
public static final MediaType WILDCARD
Method Detail |
---|
public static MediaType fromString(java.lang.String type)
The fromString()
method tries to convert a mime-type to the equivalent
MediaType
.
public java.lang.String getMimeType()
public java.lang.String toString()
toString
in class java.lang.Enum<MediaType>
public static MediaType 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 name
java.lang.NullPointerException
- if the argument is nullpublic static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |