public enum BlockingContentType extends Enum<BlockingContentType>
| Enum Constant and Description |
|---|
AUTO
Automatically choose between HTML and JSON, depending on the value of the
Accept
header. |
HTML
An HTTP response.
|
JSON
A JSON response.
|
NONE
No body in the response
|
| Modifier and Type | Method and Description |
|---|---|
static BlockingContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockingContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockingContentType AUTO
Accept
header. If the preference value is the same, JSON will be preferred.public static final BlockingContentType HTML
public static final BlockingContentType JSON
public static final BlockingContentType NONE
public static BlockingContentType[] values()
for (BlockingContentType c : BlockingContentType.values()) System.out.println(c);
public static BlockingContentType 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 null