Class MappingJackson2CborHttpMessageConverter

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

public class MappingJackson2CborHttpMessageConverter extends AbstractJackson2HttpMessageConverter
Implementation of HttpMessageConverter that can read and write the CBOR data format using the dedicated Jackson 2.x extension.

By default, this converter supports the MediaType.APPLICATION_CBOR_VALUE media type. This can be overridden by setting the supportedMediaTypes property.

The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder.

Sebastien Deleuze
  • Constructor Details

    • MappingJackson2CborHttpMessageConverter

      public MappingJackson2CborHttpMessageConverter()
      Construct a new MappingJackson2CborHttpMessageConverter using the default configuration provided by Jackson2ObjectMapperBuilder.
    • MappingJackson2CborHttpMessageConverter

      public MappingJackson2CborHttpMessageConverter(ObjectMapper objectMapper)
      Construct a new MappingJackson2CborHttpMessageConverter with a custom ObjectMapper (must be configured with a CBORFactory instance).

      You can use Jackson2ObjectMapperBuilder to build it easily.

      See Also:
  • Method Details