public enum SerdeEncoding extends java.lang.Enum<SerdeEncoding>
Enum Constant and Description |
---|
JSON
JavaScript Object Notation.
|
XML
Extensible Markup Language.
|
Modifier and Type | Method and Description |
---|---|
static SerdeEncoding |
fromHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Determines the serializer encoding to use based on the Content-Type header.
|
static SerdeEncoding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SerdeEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerdeEncoding JSON
public static final SerdeEncoding XML
public static SerdeEncoding[] values()
for (SerdeEncoding c : SerdeEncoding.values()) System.out.println(c);
public static SerdeEncoding 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 static SerdeEncoding fromHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
headers
- the headers to check the encoding for.JSON
if there is no Content-Type header or an
unrecognized Content-Type encoding is returned.