Class Jackson2CborEncoder

All Implemented Interfaces:
org.springframework.core.codec.Encoder<Object>, HttpMessageEncoder<Object>

@Deprecated(since="7.0", forRemoval=true) public class Jackson2CborEncoder extends AbstractJackson2Encoder
Deprecated, for removal: This API element is subject to removal in a future version.
since 7.0 in favor of JacksonCborEncoder
Encode from an Object to bytes of CBOR objects using Jackson 2.x.

Stream encoding is currently not supported.

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

    • Jackson2CborEncoder

      public Jackson2CborEncoder()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Jackson2CborEncoder

      public Jackson2CborEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.util.MimeType... mimeTypes)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • encode

      public Flux<org.springframework.core.io.buffer.DataBuffer> encode(Publisher<?> inputStream, org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType, @Nullable Map<String,Object> hints)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      encode in interface org.springframework.core.codec.Encoder<Object>
      Overrides:
      encode in class AbstractJackson2Encoder