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 SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Collection<String> static final Stringstatic final Stringstatic final StringThe header to represent aResolvableTypefor the target deserialized object.static final String
- 
Method SummaryModifier and TypeMethodDescriptionstatic ResolvableTypebuildResolvableType(Class<?> targetClass, Class<?> contentClass, Class<?> keyClass) Build aResolvableTypefor provided class components.static ResolvableTypebuildResolvableType(ClassLoader classLoader, Object targetClassValue, Object contentClassValue, Object keyClassValue) Build aResolvableTypefor provided class components.
- 
Field Details- 
PREFIX- See Also:
 
- 
TYPE_ID- See Also:
 
- 
CONTENT_TYPE_ID- See Also:
 
- 
KEY_TYPE_ID- See Also:
 
- 
RESOLVABLE_TYPEThe header to represent aResolvableTypefor the target deserialized object.- Since:
- 5.2
- See Also:
 
- 
HEADERS
 
- 
- 
Method Details- 
buildResolvableTypepublic static ResolvableType buildResolvableType(ClassLoader classLoader, Object targetClassValue, @Nullable Object contentClassValue, @Nullable Object keyClassValue) Build aResolvableTypefor provided class components.- Parameters:
- classLoader- a- ClassLoadert 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 ResolvableTypebased on provided class components
- Since:
- 5.2.4
 
- 
buildResolvableTypepublic static ResolvableType buildResolvableType(Class<?> targetClass, @Nullable Class<?> contentClass, @Nullable Class<?> keyClass) Build aResolvableTypefor provided class components.- Parameters:
- targetClass- the class to use.
- contentClass- the collection element (or map value) class.
- keyClass- the map key class.
- Returns:
- the ResolvableTypebased on provided class components
- Since:
- 5.2.4
 
 
-