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&nbsp;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&nbsp;JacksonXmlHttpMessageConverter(tools.jackson.dataformat.xml.XmlMapper.Builder&nbsp;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&nbsp;JacksonXmlHttpMessageConverter(tools.jackson.dataformat.xml.XmlMapper&nbsp;xmlMapper)
      Construct a new instance with the provided XmlMapper.
      see Also:
      • XmlMapper.builder()
  • Method Details