public static enum RequestHelper.RequestType extends java.lang.Enum<RequestHelper.RequestType>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
org.springframework.http.MediaType |
getMediaType() |
static RequestHelper.RequestType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequestHelper.RequestType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestHelper.RequestType JSON
public static final RequestHelper.RequestType XML
public static RequestHelper.RequestType[] values()
for (RequestHelper.RequestType c : RequestHelper.RequestType.values()) System.out.println(c);
public static RequestHelper.RequestType 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 getContentType()
public org.springframework.http.MediaType getMediaType()