Package | Description |
---|---|
org.springframework.core.codec | |
org.springframework.http.codec | |
org.springframework.http.codec.json |
JSON encoder and decoder support.
|
org.springframework.http.codec.protobuf |
Provides an encoder and a decoder for
Google Protocol Buffers.
|
org.springframework.http.codec.xml |
XML encoder and decoder support.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDataBufferDecoder<T>
Abstract base class for
Decoder implementations that can decode
a DataBuffer directly to the target element type. |
class |
AbstractDecoder<T>
Abstract base class for
Decoder implementations. |
class |
ByteArrayDecoder
Decoder for
byte arrays. |
class |
ByteBufferDecoder
Decoder for
ByteBuffers . |
class |
DataBufferDecoder
Simple pass-through decoder for
DataBuffers . |
class |
ResourceDecoder
Decoder for
Resources . |
class |
StringDecoder
Decode from a data buffer stream to a
String stream. |
Modifier and Type | Interface and Description |
---|---|
interface |
HttpMessageDecoder<T>
Extension of
Decoder exposing extra methods relevant in the context
of HTTP request or response body decoding. |
Modifier and Type | Method and Description |
---|---|
Decoder<?> |
ServerSentEventHttpMessageReader.getDecoder()
Return the configured
Decoder . |
Decoder<T> |
DecoderHttpMessageReader.getDecoder()
Return the
Decoder of this reader. |
Modifier and Type | Method and Description |
---|---|
void |
CodecConfigurer.CustomCodecs.decoder(Decoder<?> decoder)
Add a custom
Decoder internally wrapped with
DecoderHttpMessageReader ). |
void |
CodecConfigurer.DefaultCodecs.jackson2JsonDecoder(Decoder<?> decoder)
Override the default Jackson JSON
Decoder . |
void |
CodecConfigurer.DefaultCodecs.jaxb2Decoder(Decoder<?> decoder)
Override the default JAXB2
Decoder . |
void |
CodecConfigurer.DefaultCodecs.protobufDecoder(Decoder<?> decoder)
Override the default Protobuf
Decoder . |
void |
ClientCodecConfigurer.ClientDefaultCodecs.serverSentEventDecoder(Decoder<?> decoder)
Configure the
Decoder to use for Server-Sent Events. |
Constructor and Description |
---|
DecoderHttpMessageReader(Decoder<T> decoder)
Create an instance wrapping the given
Decoder . |
ServerSentEventHttpMessageReader(Decoder<?> decoder)
Constructor with JSON
Decoder for decoding to Objects. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractJackson2Decoder
Abstract base class for Jackson 2.9 decoding, leveraging non-blocking parsing.
|
class |
Jackson2JsonDecoder
Decode a byte stream into JSON and convert to Object's with Jackson 2.9,
leveraging non-blocking parsing.
|
class |
Jackson2SmileDecoder
Decode a byte stream into Smile and convert to Object's with Jackson 2.9,
leveraging non-blocking parsing.
|
Modifier and Type | Class and Description |
---|---|
class |
ProtobufDecoder
|
Modifier and Type | Class and Description |
---|---|
class |
Jaxb2XmlDecoder
Decode from a bytes stream containing XML elements to a stream of
Object s (POJOs). |
class |
XmlEventDecoder
Decodes a
DataBuffer stream into a stream of XMLEvents . |