Class Jackson2XmlMessageConverter
java.lang.Object
org.springframework.amqp.support.converter.AbstractMessageConverter
org.springframework.amqp.support.converter.AbstractJackson2MessageConverter
org.springframework.amqp.support.converter.Jackson2XmlMessageConverter
- All Implemented Interfaces:
MessageConverter
,SmartMessageConverter
,Aware
,BeanClassLoaderAware
XML converter that uses the Jackson 2 Xml library.
- Since:
- 2.1
- Author:
- Mohammad Hewedy
-
Field Summary
Fields inherited from class org.springframework.amqp.support.converter.AbstractJackson2MessageConverter
DEFAULT_CHARSET, log, objectMapper
-
Constructor Summary
ConstructorDescriptionConstruct with an internalXmlMapper
instance and trusted packed to all (*
).Jackson2XmlMessageConverter
(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper) Construct with the providedXmlMapper
instance and trusted packed to all (*
).Jackson2XmlMessageConverter
(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper, String... trustedPackages) Construct with the providedXmlMapper
instance.Jackson2XmlMessageConverter
(String... trustedPackages) Construct with an internalXmlMapper
instance. -
Method Summary
Methods inherited from class org.springframework.amqp.support.converter.AbstractJackson2MessageConverter
createMessage, createMessage, fromMessage, fromMessage, getClassLoader, getClassMapper, getDefaultCharset, getJavaTypeMapper, getTypePrecedence, isTypeMapperSet, isUseProjectionForInterfaces, setAlwaysConvertToInferredType, setAssumeSupportedContentType, setBeanClassLoader, setClassMapper, setDefaultCharset, setJavaTypeMapper, setTypePrecedence, setUseProjectionForInterfaces
Methods inherited from class org.springframework.amqp.support.converter.AbstractMessageConverter
isCreateMessageIds, setCreateMessageIds, toMessage, toMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.amqp.support.converter.MessageConverter
toMessage, toMessage
-
Constructor Details
-
Jackson2XmlMessageConverter
public Jackson2XmlMessageConverter()Construct with an internalXmlMapper
instance and trusted packed to all (*
). -
Jackson2XmlMessageConverter
Construct with an internalXmlMapper
instance. TheDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
is set to false on theXmlMapper
.- Parameters:
trustedPackages
- the trusted Java packages for deserialization- See Also:
-
Jackson2XmlMessageConverter
public Jackson2XmlMessageConverter(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper) Construct with the providedXmlMapper
instance and trusted packed to all (*
).- Parameters:
xmlMapper
- theXmlMapper
to use.
-
Jackson2XmlMessageConverter
public Jackson2XmlMessageConverter(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper, String... trustedPackages) Construct with the providedXmlMapper
instance.- Parameters:
xmlMapper
- theXmlMapper
to use.trustedPackages
- the trusted Java packages for deserialization- See Also:
-