Class Jackson2CborEncoder

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

public class Jackson2CborEncoder extends AbstractJackson2Encoder
Encode from an Object to bytes of CBOR objects using Jackson. Stream encoding is not supported yet.
Since:
5.2
Author:
Sebastien Deleuze
See Also:
  • Constructor Details

    • Jackson2CborEncoder

      public Jackson2CborEncoder()
    • Jackson2CborEncoder

      public Jackson2CborEncoder(ObjectMapper mapper, org.springframework.util.MimeType... mimeTypes)
  • Method Details

    • encode

      public reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> encode(Publisher<?> inputStream, org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType elementType, org.springframework.util.MimeType mimeType, Map<String,Object> hints)
      Specified by:
      encode in interface org.springframework.core.codec.Encoder<Object>
      Overrides:
      encode in class AbstractJackson2Encoder