Class Jackson2XmlMessageConverter

All Implemented Interfaces:
MessageConverter, SmartMessageConverter, Aware, BeanClassLoaderAware

public class Jackson2XmlMessageConverter extends AbstractJackson2MessageConverter
XML converter that uses the Jackson 2 Xml library.
Since:
2.1
Author:
Mohammad Hewedy
  • Constructor Details

    • Jackson2XmlMessageConverter

      public Jackson2XmlMessageConverter()
      Construct with an internal XmlMapper instance and trusted packed to all (*).
    • Jackson2XmlMessageConverter

      public Jackson2XmlMessageConverter(String... trustedPackages)
      Construct with an internal XmlMapper instance. The DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES is set to false on the XmlMapper.
      Parameters:
      trustedPackages - the trusted Java packages for deserialization
      See Also:
    • Jackson2XmlMessageConverter

      public Jackson2XmlMessageConverter(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper)
      Construct with the provided XmlMapper instance and trusted packed to all (*).
      Parameters:
      xmlMapper - the XmlMapper to use.
    • Jackson2XmlMessageConverter

      public Jackson2XmlMessageConverter(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper, String... trustedPackages)
      Construct with the provided XmlMapper instance.
      Parameters:
      xmlMapper - the XmlMapper to use.
      trustedPackages - the trusted Java packages for deserialization
      See Also: