Class JacksonCborHttpMessageConverter

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

public class JacksonCborHttpMessageConverter extends AbstractJacksonHttpMessageConverter<tools.jackson.dataformat.cbor.CBORMapper>
Implementation of HttpMessageConverter that can read and write the CBOR data format using the dedicated Jackson 3.x extension.

By default, this converter supports the MediaType.APPLICATION_CBOR_VALUE 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

    • JacksonCborHttpMessageConverter

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

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

      public JacksonCborHttpMessageConverter(tools.jackson.dataformat.cbor.CBORMapper mapper)
      Construct a new instance with the provided CBORMapper.
      See Also:
      • CBORMapper.builder()