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.annotation.reactive |
Support classes for working with annotated message-handling methods with
non-blocking, 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.
|
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 |
NettyByteBufDecoder
Decoder for
ByteBufs . |
class |
ResourceDecoder
Decoder for
Resources . |
class |
StringDecoder
Decode from a data buffer stream to a
String stream, either splitting
or aggregating incoming data chunks to realign along newlines delimiters
and produce a stream of strings. |
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<T> |
DecoderHttpMessageReader.getDecoder()
Return the
Decoder of this reader. |
Decoder<?> |
ServerSentEventHttpMessageReader.getDecoder()
Return the configured
Decoder . |
Modifier and Type | Method and Description |
---|---|
void |
CodecConfigurer.CustomCodecs.decoder(Decoder<?> decoder)
Deprecated.
as of 5.1.13, use
CodecConfigurer.CustomCodecs.register(Object) or
CodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object) instead. |
void |
CodecConfigurer.DefaultCodecs.jackson2JsonDecoder(Decoder<?> decoder)
Override the default Jackson JSON
Decoder . |
void |
CodecConfigurer.DefaultCodecs.jackson2SmileDecoder(Decoder<?> decoder)
Override the default Jackson Smile
Decoder . |
void |
CodecConfigurer.DefaultCodecs.jaxb2Decoder(Decoder<?> decoder)
Override the default JAXB2
Decoder . |
void |
CodecConfigurer.DefaultCodecs.kotlinSerializationJsonDecoder(Decoder<?> decoder)
Override the default Kotlin Serialization JSON
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 |
Jackson2CborDecoder
Decode bytes into CBOR and convert to Object's with Jackson.
|
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.
|
class |
KotlinSerializationJsonDecoder
Decode a byte stream into JSON and convert to Object's with
kotlinx.serialization.
|
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 . |
Modifier and Type | Method and Description |
---|---|
List<Decoder<?>> |
PayloadMethodArgumentResolver.getDecoders()
Return a read-only list of the configured decoders.
|
List<? extends Decoder<?>> |
MessageMappingMessageHandler.getDecoders()
Return the configured decoders.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageMappingMessageHandler.setDecoders(List<? extends Decoder<?>> decoders)
Configure the decoders to use for incoming payloads.
|
Constructor and Description |
---|
PayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders,
Validator validator,
ReactiveAdapterRegistry registry,
boolean useDefaultResolution) |
Modifier and Type | Method and Description |
---|---|
default <T> Decoder<T> |
RSocketStrategies.decoder(ResolvableType elementType,
MimeType mimeType)
Find a compatible Decoder for the given element type.
|
Modifier and Type | Method and Description |
---|---|
List<Decoder<?>> |
RSocketStrategies.decoders()
Return the configured
decoders . |
List<? extends Decoder<?>> |
DefaultMetadataExtractor.getDecoders()
Return a read-only list with the configured decoders.
|
Modifier and Type | Method and Description |
---|---|
RSocketStrategies.Builder |
RSocketStrategies.Builder.decoder(Decoder<?>... decoder)
Append to the list of decoders to use for de-serializing Objects from
the data or metadata of a
Payload . |
Modifier and Type | Method and Description |
---|---|
RSocketStrategies.Builder |
RSocketStrategies.Builder.decoders(Consumer<List<Decoder<?>>> consumer)
Apply the consumer to the list of configured decoders, immediately.
|
Constructor and Description |
---|
DefaultMetadataExtractor(Decoder<?>... decoders)
Constructor with decoders for de-serializing metadata entries.
|
Constructor and Description |
---|
DefaultMetadataExtractor(List<Decoder<?>> decoders)
Constructor with list of decoders for de-serializing metadata entries.
|
Modifier and Type | Method and Description |
---|---|
void |
RSocketMessageHandler.setDecoders(List<? extends Decoder<?>> decoders)
Configure the decoders to use for incoming payloads.
|