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.
|
org.springframework.web.reactive.result.view |
Support for result handling through view resolution.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractEncoder<T>
Abstract base class for
Decoder implementations. |
class |
AbstractSingleValueEncoder<T>
Abstract base class for
Encoder
classes that can only deal with a single value. |
class |
ByteArrayEncoder
Encoder for
byte arrays. |
class |
ByteBufferEncoder
Encoder for
ByteBuffers . |
class |
CharSequenceEncoder
Encode from a
CharSequence stream to a bytes stream. |
class |
DataBufferEncoder
Simple pass-through encoder for
DataBuffers . |
class |
ResourceEncoder
Encoder for
Resources . |
class |
ResourceRegionEncoder
Encoder for
ResourceRegions . |
Modifier and Type | Interface and Description |
---|---|
interface |
HttpMessageEncoder<T>
Extension of
Encoder exposing extra methods relevant in the context
of HTTP request or response body encoding. |
Modifier and Type | Method and Description |
---|---|
Encoder<?> |
ServerSentEventHttpMessageWriter.getEncoder()
Return the configured
Encoder , if any. |
Encoder<T> |
EncoderHttpMessageWriter.getEncoder()
Return the
Encoder of this writer. |
Modifier and Type | Method and Description |
---|---|
ClientCodecConfigurer.MultipartCodecs |
ClientCodecConfigurer.MultipartCodecs.encoder(Encoder<?> encoder)
Add a Part
Encoder , internally wrapped with
EncoderHttpMessageWriter . |
void |
CodecConfigurer.CustomCodecs.encoder(Encoder<?> encoder)
Add a custom
Encoder , internally wrapped with
EncoderHttpMessageWriter . |
void |
CodecConfigurer.DefaultCodecs.jackson2JsonEncoder(Encoder<?> encoder)
Override the default Jackson JSON
Encoder . |
void |
CodecConfigurer.DefaultCodecs.jaxb2Encoder(Encoder<?> encoder)
Override the default JABX2
Encoder . |
void |
CodecConfigurer.DefaultCodecs.protobufEncoder(Encoder<?> encoder)
Override the default Protobuf
Encoder . |
void |
ServerCodecConfigurer.ServerDefaultCodecs.serverSentEventEncoder(Encoder<?> encoder)
Configure the
Encoder to use for Server-Sent Events. |
Constructor and Description |
---|
EncoderHttpMessageWriter(Encoder<T> encoder)
Create an instance wrapping the given
Encoder . |
ServerSentEventHttpMessageWriter(Encoder<?> encoder)
Constructor with JSON
Encoder for encoding objects. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractJackson2Encoder
Base class providing support methods for Jackson 2.9 encoding.
|
class |
Jackson2JsonEncoder
Encode from an
Object stream to a byte stream of JSON objects using Jackson 2.9. |
class |
Jackson2SmileEncoder
Encode from an
Object stream to a byte stream of Smile objects using Jackson 2.9. |
Modifier and Type | Class and Description |
---|---|
class |
ProtobufEncoder
|
Constructor and Description |
---|
ProtobufHttpMessageWriter(Encoder<com.google.protobuf.Message> encoder)
Create a new
ProtobufHttpMessageWriter with the given encoder. |
Modifier and Type | Class and Description |
---|---|
class |
Jaxb2XmlEncoder
Encode from single value to a byte stream containing XML elements.
|
Constructor and Description |
---|
HttpMessageWriterView(Encoder<?> encoder)
Constructor with an
Encoder . |