Class JacksonJsonDecoder
java.lang.Object
org.springframework.http.codec.JacksonCodecSupport<tools.jackson.databind.json.JsonMapper>
org.springframework.http.codec.AbstractJacksonDecoder<tools.jackson.databind.json.JsonMapper>
org.springframework.http.codec.json.JacksonJsonDecoder
- All Implemented Interfaces:
- Decoder<Object>, HttpMessageDecoder<Object>
public class JacksonJsonDecoder
extends AbstractJacksonDecoder<tools.jackson.databind.json.JsonMapper>
Decode a byte stream into JSON and convert to Object's with
Jackson 3.x
leveraging non-blocking parsing.
- Since:
- 7.0
- Author:
- Sebastien Deleuze
- See Also:
- 
Field SummaryFields inherited from class JacksonCodecSupportFILTER_PROVIDER_HINT, JSON_VIEW_HINT, logger, mapperRegistrations
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct a new instance with aJsonMappercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader).JacksonJsonDecoder(tools.jackson.databind.json.JsonMapper mapper) Construct a new instance with the providedJsonMapper.JacksonJsonDecoder(tools.jackson.databind.json.JsonMapper.Builder builder) Construct a new instance with the providedJsonMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader).JacksonJsonDecoder(tools.jackson.databind.json.JsonMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedJsonMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), andMimeTypes.JacksonJsonDecoder(tools.jackson.databind.json.JsonMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedJsonMapperandMimeTypes.
- 
Method SummaryModifier and TypeMethodDescriptionprotected reactor.core.publisher.Flux<DataBuffer> processInput(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Process the input publisher into a flux.Methods inherited from class AbstractJacksonDecodercanDecode, customizeReader, decode, decode, decodeToMono, getAnnotation, getDecodableMimeTypes, getDecodableMimeTypes, getDecodeHints, getMaxInMemorySize, setMaxInMemorySizeMethods inherited from class JacksonCodecSupportgetHints, getJavaType, getMapper, getMapperRegistrations, getMappersForType, getMediaTypesForProblemDetail, getMimeTypes, getMimeTypes, getParameter, registerMappersForType, selectMapper, supportsMimeType
- 
Constructor Details- 
JacksonJsonDecoderpublic JacksonJsonDecoder()Construct a new instance with aJsonMappercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader).
- 
JacksonJsonDecoderpublic JacksonJsonDecoder(tools.jackson.databind.json.JsonMapper.Builder builder) Construct a new instance with the providedJsonMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader).- See Also:
 
- 
JacksonJsonDecoderpublic JacksonJsonDecoder(tools.jackson.databind.json.JsonMapper mapper) Construct a new instance with the providedJsonMapper.- See Also:
 
- 
JacksonJsonDecoder
- 
JacksonJsonDecoder
 
- 
- 
Method Details- 
processInputprotected reactor.core.publisher.Flux<DataBuffer> processInput(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Description copied from class:AbstractJacksonDecoderProcess the input publisher into a flux. Default implementation returnsFlux.from(Publisher), but subclasses can choose to customize this behavior.- Overrides:
- processInputin class- AbstractJacksonDecoder<tools.jackson.databind.json.JsonMapper>
- Parameters:
- input- the- DataBufferinput stream to process
- elementType- the expected type of elements in the output stream
- mimeType- the MIME type associated with the input stream (optional)
- hints- additional information about how to do encode
- Returns:
- the processed flux
 
 
-