Class JsonHeaders
java.lang.Object
org.springframework.integration.mapping.support.JsonHeaders
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
Modifier and TypeFieldDescriptionstatic final String
static final Collection<String>
static final String
static final String
static final String
The header to represent aResolvableType
for the target deserialized object.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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:
-
TYPE_ID
- See Also:
-
CONTENT_TYPE_ID
- See Also:
-
KEY_TYPE_ID
- See Also:
-
RESOLVABLE_TYPE
The header to represent aResolvableType
for the target deserialized object.- Since:
- 5.2
- See Also:
-
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
-