public enum ResourceMediaTypes extends Enum<ResourceMediaTypes>
| Modifier and Type | Method and Description |
|---|---|
static ResourceMediaTypes |
fromString(String text) |
String |
getMediaType() |
static ResourceMediaTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceMediaTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceMediaTypes XML
public static final ResourceMediaTypes JSON
public static final ResourceMediaTypes TEXT_EVT
public static ResourceMediaTypes[] values()
for (ResourceMediaTypes c : ResourceMediaTypes.values()) System.out.println(c);
public static ResourceMediaTypes 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 nullpublic static ResourceMediaTypes fromString(String text)
public String getMediaType()
Copyright © 2014. All rights reserved.