public static enum KeepApiInfo.BodyType extends java.lang.Enum<KeepApiInfo.BodyType>
List of body types we expect / process Currently we only need to distinguish between JSON (object/array) and other like buffer or mime
Enum Constant and Description |
---|
JSON_ARRAY
Expect something like [...]
|
JSON_OBJECT
Expect something like {...}
|
NONE
Expect no body
|
OTHER
Any other format like MIME and plain text
|
Modifier and Type | Method and Description |
---|---|
static KeepApiInfo.BodyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeepApiInfo.BodyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeepApiInfo.BodyType JSON_OBJECT
public static final KeepApiInfo.BodyType JSON_ARRAY
public static final KeepApiInfo.BodyType OTHER
public static final KeepApiInfo.BodyType NONE
public static KeepApiInfo.BodyType[] values()
for (KeepApiInfo.BodyType c : KeepApiInfo.BodyType.values()) System.out.println(c);
public static KeepApiInfo.BodyType 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 null