Class Jackson2CborEncoder
java.lang.Object
org.springframework.http.codec.json.Jackson2CodecSupport
org.springframework.http.codec.json.AbstractJackson2Encoder
org.springframework.http.codec.cbor.Jackson2CborEncoder
- All Implemented Interfaces:
org.springframework.core.codec.Encoder<Object>
,HttpMessageEncoder<Object>
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:
-
Field Summary
Fields inherited from class org.springframework.http.codec.json.Jackson2CodecSupport
JSON_VIEW_HINT, logger
-
Constructor Summary
ConstructorDescriptionJackson2CborEncoder
(ObjectMapper mapper, org.springframework.util.MimeType... mimeTypes) -
Method Summary
Modifier and TypeMethodDescriptionreactor.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) Methods inherited from class org.springframework.http.codec.json.AbstractJackson2Encoder
canEncode, customizeWriter, encodeValue, getAnnotation, getEncodableMimeTypes, getEncodableMimeTypes, getEncodeHints, getJsonEncoding, getStreamingMediaTypes, getStreamingMediaTypeSeparator, setStreamingMediaTypes
Methods inherited from class org.springframework.http.codec.json.Jackson2CodecSupport
getHints, getJavaType, getMediaTypesForProblemDetail, getMimeTypes, getMimeTypes, getObjectMapper, getObjectMapperRegistrations, getObjectMappersForType, getParameter, logWarningIfNecessary, registerObjectMappersForType, selectObjectMapper, setObjectMapper, supportsMimeType
-
Constructor Details
-
Jackson2CborEncoder
public Jackson2CborEncoder() -
Jackson2CborEncoder
-
-
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 interfaceorg.springframework.core.codec.Encoder<Object>
- Overrides:
encode
in classAbstractJackson2Encoder
-