Class JacksonCborDecoder

java.lang.Object
org.springframework.http.codec.JacksonCodecSupport<tools.jackson.dataformat.cbor.CBORMapper>
org.springframework.http.codec.AbstractJacksonDecoder<tools.jackson.dataformat.cbor.CBORMapper>
org.springframework.http.codec.cbor.JacksonCborDecoder
All Implemented Interfaces:
org.springframework.core.codec.Decoder<Object>, HttpMessageDecoder<Object>

public class JacksonCborDecoder extends AbstractJacksonDecoder<tools.jackson.dataformat.cbor.CBORMapper>
Decode bytes into CBOR and convert to Objects with Jackson 3.x.

Stream decoding is currently not supported.

Since:
7.0
Author:
Sebastien Deleuze
See Also:
  • Constructor Details

    • JacksonCborDecoder

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

      public JacksonCborDecoder(tools.jackson.dataformat.cbor.CBORMapper mapper)
      Construct a new instance with the provided CBORMapper.
    • JacksonCborDecoder

      public JacksonCborDecoder(tools.jackson.dataformat.cbor.CBORMapper mapper, org.springframework.util.MimeType... mimeTypes)
      Construct a new instance with the provided CBORMapper and MimeTypes.
      See Also:
  • Method Details

    • decode

      public reactor.core.publisher.Flux<Object> decode(Publisher<org.springframework.core.io.buffer.DataBuffer> input, org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType, @Nullable Map<String,Object> hints)
      Specified by:
      decode in interface org.springframework.core.codec.Decoder<Object>
      Overrides:
      decode in class AbstractJacksonDecoder<tools.jackson.dataformat.cbor.CBORMapper>