Class JacksonxmlHttpMessageConverter

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

public class JacksonxmlHttpMessageConverter extends AbstractJacksonHttpMessageConverter<tools.jackson.dataformat.xml.xmlMapper>
Implementation of HttpMessageConverter that can read and write xml using Jackson 3.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 following hint entries are supported:

  • A JSON view with a com.fasterxml.jackson.annotation.JsonView key and the class name of the JSON view as value.
  • A filter provider with a tools.jackson.databind.ser.FilterProvider key and the filter provider class name as value.
Since:
7.0
Author:
Sebastien Deleuze
  • Constructor Details

    • JacksonxmlHttpMessageConverter

      public JacksonxmlHttpMessageConverter()
      Construct a new instance with an xmlMapper created from defensivexmlFactory() and customized with the JacksonModules found by MapperBuilder.findModules(ClassLoader) and ProblemDetailJacksonxmlMixin.
    • JacksonxmlHttpMessageConverter

      public JacksonxmlHttpMessageConverter(tools.jackson.dataformat.xml.xmlMapper.Builder builder)
      Construct a new instance with the provided builder customized with the JacksonModules found by MapperBuilder.findModules(ClassLoader) and ProblemDetailJacksonxmlMixin.
      See Also:
      • xmlMapper.builder()
    • JacksonxmlHttpMessageConverter

      public JacksonxmlHttpMessageConverter(tools.jackson.dataformat.xml.xmlMapper xmlMapper)
      Construct a new instance with the provided xmlMapper.
      See Also:
      • xmlMapper.builder()
  • Method Details