Class Jackson2CborDecoder
java.lang.Object
org.springframework.http.codec.json.Jackson2CodecSupport
org.springframework.http.codec.json.AbstractJackson2Decoder
org.springframework.http.codec.cbor.Jackson2CborDecoder
- All Implemented Interfaces:
- Decoder<Object>, HttpMessageDecoder<Object>
@Deprecated(since="7.0",
            forRemoval=true)
public class Jackson2CborDecoder
extends AbstractJackson2Decoder
Deprecated, for removal: This API element is subject to removal in a future version.
Decode bytes into CBOR and convert to Object's with Jackson 2.x.
Stream decoding is not supported yet.
- Since:
- 5.2
- Author:
- Sebastien Deleuze
- See Also:
- 
Field SummaryFields inherited from class Jackson2CodecSupportJSON_VIEW_HINT, logger
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Jackson2CborDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Flux<Object> decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.Decode aDataBufferinput stream into a Flux ofT.Methods inherited from class AbstractJackson2DecodercanDecode, customizeReader, decode, decodeToMono, getAnnotation, getDecodableMimeTypes, getDecodableMimeTypes, getDecodeHints, getMaxInMemorySize, processInput, setMaxInMemorySizeMethods inherited from class Jackson2CodecSupportgetHints, getJavaType, getMediaTypesForProblemDetail, getMimeTypes, getMimeTypes, getObjectMapper, getObjectMapperRegistrations, getObjectMappersForType, getParameter, logWarningIfNecessary, registerObjectMappersForType, selectObjectMapper, setObjectMapper, supportsMimeType
- 
Constructor Details- 
Jackson2CborDecoderpublic Jackson2CborDecoder()Deprecated, for removal: This API element is subject to removal in a future version.
- 
Jackson2CborDecoderpublic Jackson2CborDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
decodepublic reactor.core.publisher.Flux<Object> decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DecoderDecode aDataBufferinput stream into a Flux ofT.- Specified by:
- decodein interface- Decoder<Object>
- Overrides:
- decodein class- AbstractJackson2Decoder
- Parameters:
- input- the- DataBufferinput stream to decode
- elementType- the expected type of elements in the output stream; this type must have been previously passed to the- Decoder.canDecode(ResolvableType, MimeType)method and it must have returned- true.
- mimeType- the MIME type associated with the input stream (optional)
- hints- additional information about how to do decode
- Returns:
- the output stream with decoded elements
 
 
- 
JacksonCborDecoder