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 StringCONTENT_TYPE_IDstatic Collection<String>HEADERSstatic StringKEY_TYPE_IDstatic StringPREFIXstatic StringRESOLVABLE_TYPEThe header to represent aResolvableTypefor the target deserialized object.static StringTYPE_ID -
Method Summary
Modifier and Type Method Description static 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:
- 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 aResolvableTypefor 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 aResolvableTypefor provided class components.- Parameters:
classLoader- aClassLoadert 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
-
buildResolvableType
public 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
-