Class JsonHeaders
java.lang.Object
org.springframework.integration.mapping.support.JsonHeaders
public final class JsonHeaders extends Object
Pre-defined names and prefixes to be used for setting and/or retrieving JSON
entries from/to Message Headers and other adapter, e.g. AMQP.
- Since:
- 3.0
- Author:
- Artem Bilan, Gary Russell
-
Field Summary
Fields Modifier and Type Field 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 aResolvableType
for the target deserialized object.static String
TYPE_ID
-
Method Summary
Modifier and Type Method Description static ResolvableType
buildResolvableType(Class<?> targetClass, Class<?> contentClass, Class<?> keyClass)
Build aResolvableType
for provided class components.static ResolvableType
buildResolvableType(ClassLoader classLoader, Object targetClassValue, Object contentClassValue, Object keyClassValue)
Build aResolvableType
for provided class components.
-
Field Details
-
PREFIX
- See Also:
- Constant Field Values
-
TYPE_ID
- See Also:
- Constant Field Values
-
CONTENT_TYPE_ID
- See Also:
- Constant Field Values
-
KEY_TYPE_ID
- See Also:
- Constant Field Values
-
RESOLVABLE_TYPE
The header to represent aResolvableType
for the target deserialized object.- Since:
- 5.2
- See Also:
- Constant Field Values
-
HEADERS
-
-
Method Details
-
buildResolvableType
public static ResolvableType buildResolvableType(ClassLoader classLoader, Object targetClassValue, @Nullable Object contentClassValue, @Nullable Object keyClassValue)Build aResolvableType
for provided class components.- Parameters:
classLoader
- aClassLoader
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.- Returns:
- the
ResolvableType
based on provided class components - Since:
- 5.2.4
-
buildResolvableType
public static ResolvableType buildResolvableType(Class<?> targetClass, @Nullable Class<?> contentClass, @Nullable Class<?> keyClass)Build aResolvableType
for provided class components.- Parameters:
targetClass
- the class to use.contentClass
- the collection element (or map value) class.keyClass
- the map key class.- Returns:
- the
ResolvableType
based on provided class components - Since:
- 5.2.4
-