Class JacksonSmileHttpMessageConverter

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

public class JacksonSmileHttpMessageConverter extends AbstractJacksonHttpMessageConverter<tools.jackson.dataformat.smile.SmileMapper>
Implementation of HttpMessageConverter that can read and write Smile data format ("binary JSON") using the dedicated Jackson 3.x extension.

By default, this converter supports "application/x-jackson-smile" media type. This can be overridden by setting the supportedMediaTypes property.

The following hints 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

    • JacksonSmileHttpMessageConverter

      public JacksonSmileHttpMessageConverter()
      Construct a new instance with a SmileMapper customized with the JacksonModules found by MapperBuilder.findModules(ClassLoader).
    • JacksonSmileHttpMessageConverter

      public JacksonSmileHttpMessageConverter(tools.jackson.dataformat.smile.SmileMapper.Builder builder)
      Construct a new instance with the provided SmileMapper customized with the JacksonModules found by MapperBuilder.findModules(ClassLoader).
      See Also:
      • SmileMapper.builder()
    • JacksonSmileHttpMessageConverter

      public JacksonSmileHttpMessageConverter(tools.jackson.dataformat.smile.SmileMapper mapper)
      Construct a new instance with the provided SmileMapper.
      See Also:
      • SmileMapper.builder()