Uses of Interface
org.springframework.core.codec.Decoder
Packages that use Decoder 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.Uses of Decoder in org.springframework.core.codec
Classes in org.springframework.core.codec that implement Decoder Modifier and Type Class Description class
AbstractDataBufferDecoder<T>
Abstract base class forDecoder
implementations that can decode aDataBuffer
directly to the target element type.class
AbstractDecoder<T>
Abstract base class forDecoder
implementations.class
ByteArrayDecoder
Decoder forbyte
arrays.class
ByteBufferDecoder
Decoder forByteBuffers
.class
DataBufferDecoder
Simple pass-through decoder forDataBuffers
.class
ResourceDecoder
Decoder forResources
.class
StringDecoder
Decode from a data buffer stream to aString
stream, either splitting or aggregating incoming data chunks to realign along newlines delimiters and produce a stream of strings.Uses of Decoder in org.springframework.http.codec
Subinterfaces of Decoder in org.springframework.http.codec Modifier and Type Interface Description interface
HttpMessageDecoder<T>
Extension ofDecoder
exposing extra methods relevant in the context of HTTP request or response body decoding.Methods in org.springframework.http.codec that return Decoder Modifier and Type Method Description Decoder<T>
DecoderHttpMessageReader. getDecoder()
Return theDecoder
of this reader.Decoder<?>
ServerSentEventHttpMessageReader. getDecoder()
Return the configuredDecoder
.Methods in org.springframework.http.codec with parameters of type Decoder Modifier and Type Method Description void
CodecConfigurer.CustomCodecs. decoder(Decoder<?> decoder)
Deprecated.as of 5.1.13, useCodecConfigurer.CustomCodecs.register(Object)
orCodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object)
instead.void
CodecConfigurer.DefaultCodecs. jackson2JsonDecoder(Decoder<?> decoder)
Override the default Jackson JSONDecoder
.void
CodecConfigurer.DefaultCodecs. jackson2SmileDecoder(Decoder<?> decoder)
Override the default Jackson SmileDecoder
.void
CodecConfigurer.DefaultCodecs. jaxb2Decoder(Decoder<?> decoder)
Override the default JAXB2Decoder
.void
CodecConfigurer.DefaultCodecs. protobufDecoder(Decoder<?> decoder)
Override the default ProtobufDecoder
.void
ClientCodecConfigurer.ClientDefaultCodecs. serverSentEventDecoder(Decoder<?> decoder)
Configure theDecoder
to use for Server-Sent Events.Constructors in org.springframework.http.codec with parameters of type Decoder Constructor Description DecoderHttpMessageReader(Decoder<T> decoder)
Create an instance wrapping the givenDecoder
.ServerSentEventHttpMessageReader(Decoder<?> decoder)
Constructor with JSONDecoder
for decoding to Objects.Uses of Decoder in org.springframework.http.codec.cbor
Classes in org.springframework.http.codec.cbor that implement Decoder Modifier and Type Class Description class
Jackson2CborDecoder
Decode bytes into CBOR and convert to Object's with Jackson.Uses of Decoder in org.springframework.http.codec.json
Classes in org.springframework.http.codec.json that implement Decoder Modifier and Type Class 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.Uses of Decoder in org.springframework.http.codec.protobuf
Classes in org.springframework.http.codec.protobuf that implement Decoder Modifier and Type Class Description class
ProtobufDecoder
Uses of Decoder in org.springframework.http.codec.xml
Classes in org.springframework.http.codec.xml that implement Decoder Modifier and Type Class Description class
Jaxb2XmlDecoder
Decode from a bytes stream containing XML elements to a stream ofObject
s (POJOs).class
XmlEventDecoder
Decodes aDataBuffer
stream into a stream ofXMLEvents
.Uses of Decoder in org.springframework.messaging.handler.annotation.reactive
Methods in org.springframework.messaging.handler.annotation.reactive that return types with arguments of type Decoder Modifier and Type Method Description List<? extends Decoder<?>>
MessageMappingMessageHandler. getDecoders()
Return the configured decoders.List<Decoder<?>>
PayloadMethodArgumentResolver. getDecoders()
Return a read-only list of the configured decoders.Method parameters in org.springframework.messaging.handler.annotation.reactive with type arguments of type Decoder Modifier and Type Method Description void
MessageMappingMessageHandler. setDecoders(List<? extends Decoder<?>> decoders)
Configure the decoders to use for incoming payloads.Constructor parameters in org.springframework.messaging.handler.annotation.reactive with type arguments of type Decoder Constructor Description PayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders, Validator validator, ReactiveAdapterRegistry registry, boolean useDefaultResolution)
Uses of Decoder in org.springframework.messaging.rsocket
Methods in org.springframework.messaging.rsocket that return Decoder Modifier and Type Method Description default <T> Decoder<T>
RSocketStrategies. decoder(ResolvableType elementType, MimeType mimeType)
Find a compatible Decoder for the given element type.Methods in org.springframework.messaging.rsocket that return types with arguments of type Decoder Modifier and Type Method Description List<Decoder<?>>
RSocketStrategies. decoders()
Return the configureddecoders
.List<? extends Decoder<?>>
DefaultMetadataExtractor. getDecoders()
Return a read-only list with the configured decoders.Methods in org.springframework.messaging.rsocket with parameters of type Decoder Modifier and Type Method 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 aPayload
.Method parameters in org.springframework.messaging.rsocket with type arguments of type Decoder Modifier and Type Method Description RSocketStrategies.Builder
RSocketStrategies.Builder. decoders(Consumer<List<Decoder<?>>> consumer)
Apply the consumer to the list of configured decoders, immediately.Constructors in org.springframework.messaging.rsocket with parameters of type Decoder Constructor Description DefaultMetadataExtractor(Decoder<?>... decoders)
Constructor with decoders for de-serializing metadata entries.Constructor parameters in org.springframework.messaging.rsocket with type arguments of type Decoder Constructor Description DefaultMetadataExtractor(List<Decoder<?>> decoders)
Constructor with list of decoders for de-serializing metadata entries.Uses of Decoder in org.springframework.messaging.rsocket.annotation.support
Method parameters in org.springframework.messaging.rsocket.annotation.support with type arguments of type Decoder Modifier and Type Method Description void
RSocketMessageHandler. setDecoders(List<? extends Decoder<?>> decoders)
Configure the decoders to use for incoming payloads.