Class MappingJackson2XmlHttpMessageConverter

All Implemented Interfaces:
GenericHttpMessageConverter<Object>, HttpMessageConverter<Object>

public class MappingJackson2XmlHttpMessageConverter extends AbstractJackson2HttpMessageConverter
Implementation of HttpMessageConverter that can read and write XML using Jackson 2.x extension component for reading and writing XML encoded data.

By default, this converter supports application/xml, text/xml, and application/*+xml with UTF-8 character set. This can be overridden by setting the supportedMediaTypes property.

The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder.

Since:
4.1
Author:
Sebastien Deleuze
  • Constructor Details

    • MappingJackson2XmlHttpMessageConverter

      public MappingJackson2XmlHttpMessageConverter()
      Construct a new MappingJackson2XmlHttpMessageConverter using default configuration provided by Jackson2ObjectMapperBuilder.
    • MappingJackson2XmlHttpMessageConverter

      public MappingJackson2XmlHttpMessageConverter(ObjectMapper objectMapper)
      Construct a new MappingJackson2XmlHttpMessageConverter with a custom ObjectMapper (must be a XmlMapper instance). You can use Jackson2ObjectMapperBuilder to build it easily.
      See Also:
  • Method Details