public class Jackson2JsonMessageConverter extends AbstractJackson2MessageConverter
DEFAULT_CHARSET, log, objectMapper
Constructor and Description |
---|
Jackson2JsonMessageConverter()
Construct with an internal
ObjectMapper instance
and trusted packed to all (* ). |
Jackson2JsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper)
Construct with the provided
ObjectMapper instance
and trusted packed to all (* ). |
Jackson2JsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper,
String... trustedPackages)
Construct with the provided
ObjectMapper instance. |
Jackson2JsonMessageConverter(String... trustedPackages)
Construct with an internal
ObjectMapper instance. |
createMessage, createMessage, fromMessage, fromMessage, getClassLoader, getClassMapper, getDefaultCharset, getJavaTypeMapper, getTypePrecedence, isTypeMapperSet, isUseProjectionForInterfaces, setAlwaysConvertToInferredType, setAssumeSupportedContentType, setBeanClassLoader, setClassMapper, setDefaultCharset, setJavaTypeMapper, setTypePrecedence, setUseProjectionForInterfaces
isCreateMessageIds, setCreateMessageIds, toMessage, toMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toMessage, toMessage
public Jackson2JsonMessageConverter()
ObjectMapper
instance
and trusted packed to all (*
).public Jackson2JsonMessageConverter(String... trustedPackages)
ObjectMapper
instance.
The DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
is set to false on
the ObjectMapper
.trustedPackages
- the trusted Java packages for deserializationDefaultJackson2JavaTypeMapper.setTrustedPackages(String...)
public Jackson2JsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper)
ObjectMapper
instance
and trusted packed to all (*
).jsonObjectMapper
- the ObjectMapper
to use.public Jackson2JsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper, String... trustedPackages)
ObjectMapper
instance.jsonObjectMapper
- the ObjectMapper
to use.trustedPackages
- the trusted Java packages for deserializationDefaultJackson2JavaTypeMapper.setTrustedPackages(String...)