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&nbsp;JacksonCborHttpMessageConverter()
      Construct a new instance with a CBORMapper customized with the JacksonModules found by MapperBuilder.findModules(ClassLoader).
    • JacksonCborHttpMessageConverter

      public&nbsp;JacksonCborHttpMessageConverter(tools.jackson.dataformat.cbor.CBORMapper.Builder&nbsp;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&nbsp;JacksonCborHttpMessageConverter(tools.jackson.dataformat.cbor.CBORMapper&nbsp;mapper)
      Construct a new instance with the provided CBORMapper.
      see Also:
      • CBORMapper.builder()