public class Jackson2JsonDecoder extends AbstractJackson2Decoder
Jackson2JsonEncoder
JSON_VIEW_HINT, logger
Constructor and Description |
---|
Jackson2JsonDecoder() |
Jackson2JsonDecoder(ObjectMapper mapper,
org.springframework.util.MimeType... mimeTypes) |
Modifier and Type | Method and Description |
---|---|
protected reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> |
processInput(org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer> input,
org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType,
Map<String,Object> hints)
Process the input publisher into a flux.
|
canDecode, decode, decode, decodeToMono, getAnnotation, getDecodableMimeTypes, getDecodeHints, getMaxInMemorySize, setMaxInMemorySize
getHints, getJavaType, getMimeTypes, getObjectMapper, getParameter, supportsMimeType
public Jackson2JsonDecoder()
public Jackson2JsonDecoder(ObjectMapper mapper, org.springframework.util.MimeType... mimeTypes)
protected reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> processInput(org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer> input, org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType, @Nullable Map<String,Object> hints)
AbstractJackson2Decoder
Flux.from(Publisher)
, but subclasses can choose to customize
this behavior.processInput
in class AbstractJackson2Decoder
input
- the DataBuffer
input stream to processelementType
- the expected type of elements in the output streammimeType
- the MIME type associated with the input stream (optional)hints
- additional information about how to do encode