Class JacksonMessagingUtils
java.lang.Object
org.springframework.integration.support.json.JacksonMessagingUtils
Utility for creating Jackson
ObjectMapper instance for Spring messaging.
Provides custom serializers/deserializers for Spring messaging types and validates deserialization against trusted package patterns.
- Since:
- 7.0
- Author:
- Jooyoung Pyoung
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe packages to trust on JSON deserialization by default. -
Method Summary
Modifier and TypeMethodDescriptionstatic tools.jackson.databind.ObjectMappermessagingAwareMapper(String @Nullable ... trustedPackages) Return anObjectMapperif available, supplied with Message specific serializers and deserializers.
-
Field Details
-
DEFAULT_TRUSTED_PACKAGES
-
-
Method Details
-
messagingAwareMapper
public static tools.jackson.databind.ObjectMapper messagingAwareMapper(String @Nullable ... trustedPackages) Return anObjectMapperif available, supplied with Message specific serializers and deserializers. Also configured to store typo info in the@classproperty.- Parameters:
trustedPackages- the trusted Java packages for deserialization.- Returns:
- the mapper.
- Throws:
IllegalStateException- if an implementation is not available.- Since:
- 7.0
-