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:
-
Field Summary
Fields inherited from class org.springframework.http.codec.JacksonCodecSupport
FILTER_PROVIDER_HINT, JSON_VIEW_HINT, logger, mapperRegistrations -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance with aCBORMappercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader).JacksonCborDecoder(tools.jackson.dataformat.cbor.CBORMapper mapper) Construct a new instance with the providedCBORMapper.JacksonCborDecoder(tools.jackson.dataformat.cbor.CBORMapper mapper, org.springframework.util.MimeType... mimeTypes) Construct a new instance with the providedCBORMapperandMimeTypes. -
Method Summary
Methods inherited from class org.springframework.http.codec.AbstractJacksonDecoder
canDecode, customizeReader, decode, decodeToMono, getAnnotation, getDecodableMimeTypes, getDecodableMimeTypes, getDecodeHints, getMaxInMemorySize, processInput, setMaxInMemorySizeMethods inherited from class org.springframework.http.codec.JacksonCodecSupport
getHints, getJavaType, getMapper, getMapperRegistrations, getMappersForType, getMediaTypesForProblemDetail, getMimeTypes, getMimeTypes, getParameter, registerMappersForType, selectMapper, supportsMimeType
-
Constructor Details
-
JacksonCborDecoder
public JacksonCborDecoder()Construct a new instance with aCBORMappercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader). -
JacksonCborDecoder
public JacksonCborDecoder(tools.jackson.dataformat.cbor.CBORMapper mapper) Construct a new instance with the providedCBORMapper. -
JacksonCborDecoder
public JacksonCborDecoder(tools.jackson.dataformat.cbor.CBORMapper mapper, org.springframework.util.MimeType... mimeTypes) Construct a new instance with the providedCBORMapperandMimeTypes.- 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:
decodein interfaceorg.springframework.core.codec.Decoder<Object>- Overrides:
decodein classAbstractJacksonDecoder<tools.jackson.dataformat.cbor.CBORMapper>
-