public final class JsonHeaders extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE_ID |
static Collection<String> |
HEADERS |
static String |
KEY_TYPE_ID |
static String |
PREFIX |
static String |
RESOLVABLE_TYPE
The header to represent a
ResolvableType
for the target deserialized object. |
static String |
TYPE_ID |
Modifier and Type | Method and Description |
---|---|
static ResolvableType |
buildResolvableType(Class<?> targetClass,
Class<?> contentClass,
Class<?> keyClass)
Build a
ResolvableType for provided class components. |
static ResolvableType |
buildResolvableType(ClassLoader classLoader,
Object targetClassValue,
Object contentClassValue,
Object keyClassValue)
Build a
ResolvableType for provided class components. |
public static final String PREFIX
public static final String TYPE_ID
public static final String CONTENT_TYPE_ID
public static final String KEY_TYPE_ID
public static final String RESOLVABLE_TYPE
ResolvableType
for the target deserialized object.public static final Collection<String> HEADERS
public static ResolvableType buildResolvableType(ClassLoader classLoader, Object targetClassValue, @Nullable Object contentClassValue, @Nullable Object keyClassValue)
ResolvableType
for provided class components.classLoader
- a ClassLoader
t load classes for components if needed.targetClassValue
- the class representation object.contentClassValue
- the collection element (or map value) class representation object.keyClassValue
- the map key class representation object.ResolvableType
based on provided class componentspublic static ResolvableType buildResolvableType(Class<?> targetClass, @Nullable Class<?> contentClass, @Nullable Class<?> keyClass)
ResolvableType
for provided class components.targetClass
- the class to use.contentClass
- the collection element (or map value) class.keyClass
- the map key class.ResolvableType
based on provided class components