类 Jackson2JsonDecoder
- java.lang.Object
- org.springframework.http.codec.json.Jackson2CodecSupport
- org.springframework.http.codec.json.AbstractJackson2Decoder
- org.springframework.http.codec.json.Jackson2JsonDecoder
- 所有已实现的接口:
Decoder<Object>,HttpMessageDecoder<Object>
public class Jackson2JsonDecoder extends AbstractJackson2Decoder
Decode a byte stream into JSON and convert to Object's with Jackson 2.9, leveraging non-blocking parsing.- 从以下版本开始:
- 5.0
- 作者:
- Sebastien Deleuze, Rossen Stoyanchev
- 另请参阅:
Jackson2JsonEncoder
字段概要
从类继承的字段 org.springframework.http.codec.json.Jackson2CodecSupport
JSON_VIEW_HINT, logger
构造器概要
构造器 构造器 说明 Jackson2JsonDecoder()Jackson2JsonDecoder(ObjectMapper mapper, MimeType... mimeTypes)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected reactor.core.publisher.Flux<DataBuffer>processInput(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)Process the input publisher into a flux.从类继承的方法 org.springframework.http.codec.json.AbstractJackson2Decoder
canDecode, decode, decode, decodeToMono, getAnnotation, getDecodableMimeTypes, getDecodeHints, getMaxInMemorySize, setMaxInMemorySize
从类继承的方法 org.springframework.http.codec.json.Jackson2CodecSupport
getHints, getJavaType, getMimeTypes, getObjectMapper, getParameter, supportsMimeType
构造器详细资料
Jackson2JsonDecoder
public Jackson2JsonDecoder()
Jackson2JsonDecoder
public Jackson2JsonDecoder(ObjectMapper mapper, MimeType... mimeTypes)
方法详细资料
processInput
protected reactor.core.publisher.Flux<DataBuffer> processInput(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String,Object> hints)
从类复制的说明:AbstractJackson2DecoderProcess the input publisher into a flux. Default implementation returnsFlux.from(Publisher), but subclasses can choose to customize this behavior.- 覆盖:
processInput在类中AbstractJackson2Decoder- 参数:
input- theDataBufferinput 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- 返回:
- the processed flux