public enum SerializerEncoding extends Enum<SerializerEncoding>
Enum Constant and Description |
---|
JSON
JavaScript Object Notation.
|
XML
Extensible Markup Language.
|
Modifier and Type | Method and Description |
---|---|
static SerializerEncoding |
fromHeaders(HttpHeaders headers)
Determines the serializer encoding to use based on the Content-Type header.
|
static SerializerEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerializerEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerializerEncoding JSON
public static final SerializerEncoding XML
public static SerializerEncoding[] values()
public static SerializerEncoding 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 SerializerEncoding fromHeaders(HttpHeaders headers)
headers
- the headers to check the encoding for.SerializerEncoding.JSON
if there is no Content-Type header or an
unrecognized Content-Type encoding is returned.Copyright © 2021 Microsoft Corporation. All rights reserved.