Package | Description |
---|---|
org.springframework.core.codec | |
org.springframework.http.codec | |
org.springframework.http.codec.cbor | |
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.messaging.handler.invocation.reactive |
Common infrastructure for invoking message handler methods with non-blocking,
and reactive contracts.
|
org.springframework.messaging.rsocket |
Support for the RSocket protocol.
|
org.springframework.messaging.rsocket.annotation.support |
Support classes for working with annotated RSocket stream handling methods.
|
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 |
NettyByteBufEncoder
Encoder for
ByteBufs . |
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 |
---|---|
void |
CodecConfigurer.CustomCodecs.encoder(Encoder<?> encoder)
Deprecated.
as of 5.1.13, use
CodecConfigurer.CustomCodecs.register(Object) or
CodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object) instead. |
ClientCodecConfigurer.MultipartCodecs |
ClientCodecConfigurer.MultipartCodecs.encoder(Encoder<?> encoder)
Add a Part
Encoder , internally wrapped with
EncoderHttpMessageWriter . |
void |
CodecConfigurer.DefaultCodecs.jackson2JsonEncoder(Encoder<?> encoder)
Override the default Jackson JSON
Encoder . |
void |
CodecConfigurer.DefaultCodecs.jackson2SmileEncoder(Encoder<?> encoder)
Override the default Jackson Smile
Encoder . |
void |
CodecConfigurer.DefaultCodecs.jaxb2Encoder(Encoder<?> encoder)
Override the default JABX2
Encoder . |
void |
CodecConfigurer.DefaultCodecs.kotlinSerializationJsonEncoder(Encoder<?> encoder)
Override the default Kotlin Serialization JSON
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 |
Jackson2CborEncoder
Encode from an
Object to bytes of CBOR objects using Jackson. |
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. |
class |
KotlinSerializationJsonEncoder
Encode from an
Object stream to a byte stream of JSON objects using
kotlinx.serialization. |
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.
|
Modifier and Type | Method and Description |
---|---|
List<Encoder<?>> |
AbstractEncoderMethodReturnValueHandler.getEncoders()
The configured encoders.
|
Constructor and Description |
---|
AbstractEncoderMethodReturnValueHandler(List<Encoder<?>> encoders,
ReactiveAdapterRegistry registry) |
Modifier and Type | Method and Description |
---|---|
default <T> Encoder<T> |
RSocketStrategies.encoder(ResolvableType elementType,
MimeType mimeType)
Find a compatible Encoder for the given element type.
|
Modifier and Type | Method and Description |
---|---|
List<Encoder<?>> |
RSocketStrategies.encoders()
Return the configured
encoders . |
Modifier and Type | Method and Description |
---|---|
RSocketStrategies.Builder |
RSocketStrategies.Builder.encoder(Encoder<?>... encoder)
Append to the list of encoders to use for serializing Objects to the
data or metadata of a
Payload . |
Modifier and Type | Method and Description |
---|---|
RSocketStrategies.Builder |
RSocketStrategies.Builder.encoders(Consumer<List<Encoder<?>>> consumer)
Apply the consumer to the list of configured encoders, immediately.
|
Modifier and Type | Method and Description |
---|---|
List<? extends Encoder<?>> |
RSocketMessageHandler.getEncoders()
Return the configured
encoders . |
Modifier and Type | Method and Description |
---|---|
void |
RSocketMessageHandler.setEncoders(List<? extends Encoder<?>> encoders)
Configure the encoders to use for encoding handler method return values.
|
Constructor and Description |
---|
RSocketPayloadReturnValueHandler(List<Encoder<?>> encoders,
ReactiveAdapterRegistry registry) |
Constructor and Description |
---|
HttpMessageWriterView(Encoder<?> encoder)
Constructor with an
Encoder . |