Uses of Interface
org.springframework.core.codec.Encoder
Package
Description
CBOR encoder and decoder support.
JSON encoder and decoder support.
Provides an encoder and a decoder for
Google Protocol Buffers.
XML encoder and decoder support.
Common infrastructure for invoking message handler methods with non-blocking,
and reactive contracts.
Support for the RSocket protocol.
Support classes for working with annotated RSocket stream handling methods.
Support for result handling through view resolution.
-
Uses of Encoder in org.springframework.core.codec
Modifier and TypeClassDescriptionclass
Abstract base class forEncoder
implementations.class
Abstract base class forEncoder
classes that can only deal with a single value.class
Encoder forbyte
arrays.class
Encoder forByteBuffers
.final class
Encode from aCharSequence
stream to a bytes stream.class
Simple pass-through encoder forDataBuffers
.class
Encoder forBuffers
.class
Encoder forByteBufs
.class
Encoder forResources
.class
Encoder forResourceRegions
. -
Uses of Encoder in org.springframework.http.codec
Modifier and TypeInterfaceDescriptioninterface
Extension ofEncoder
exposing extra methods relevant in the context of HTTP request or response body encoding.Modifier and TypeClassDescriptionclass
KotlinSerializationBinaryEncoder<T extends kotlinx.serialization.BinaryFormat>
Abstract base class forEncoder
implementations that defer to Kotlin binary serializers.class
KotlinSerializationStringEncoder<T extends kotlinx.serialization.StringFormat>
Abstract base class forEncoder
implementations that defer to Kotlin string serializers.Modifier and TypeMethodDescriptionEncoderHttpMessageWriter.getEncoder()
Return theEncoder
of this writer.Encoder<?>
ServerSentEventHttpMessageWriter.getEncoder()
Return the configuredEncoder
, if any.Modifier and TypeMethodDescriptionvoid
Deprecated.Add a PartEncoder
, internally wrapped withEncoderHttpMessageWriter
.void
CodecConfigurer.DefaultCodecs.jackson2JsonEncoder
(Encoder<?> encoder) Override the default Jackson JSONEncoder
.void
CodecConfigurer.DefaultCodecs.jackson2SmileEncoder
(Encoder<?> encoder) Override the default Jackson SmileEncoder
.void
CodecConfigurer.DefaultCodecs.jaxb2Encoder
(Encoder<?> encoder) Override the default JABX2Encoder
.void
CodecConfigurer.DefaultCodecs.kotlinSerializationCborEncoder
(Encoder<?> encoder) Override the default Kotlin Serialization CBOREncoder
.void
CodecConfigurer.DefaultCodecs.kotlinSerializationJsonEncoder
(Encoder<?> encoder) Override the default Kotlin Serialization JSONEncoder
.void
CodecConfigurer.DefaultCodecs.kotlinSerializationProtobufEncoder
(Encoder<?> encoder) Override the default Kotlin Serialization ProtobufEncoder
.void
CodecConfigurer.DefaultCodecs.protobufEncoder
(Encoder<?> encoder) Override the default ProtobufEncoder
.void
ServerCodecConfigurer.ServerDefaultCodecs.serverSentEventEncoder
(Encoder<?> encoder) Configure theEncoder
to use for Server-Sent Events.ModifierConstructorDescriptionEncoderHttpMessageWriter
(Encoder<T> encoder) Create an instance wrapping the givenEncoder
.ServerSentEventHttpMessageWriter
(Encoder<?> encoder) Constructor with JSONEncoder
for encoding objects. -
Uses of Encoder in org.springframework.http.codec.cbor
Modifier and TypeClassDescriptionclass
Encode from anObject
to bytes of CBOR objects using Jackson.class
Encode from anObject
stream to a byte stream of CBOR objects using kotlinx.serialization. -
Uses of Encoder in org.springframework.http.codec.json
Modifier and TypeClassDescriptionclass
Base class providing support methods for Jackson 2.x encoding.class
Encode from anObject
stream to a byte stream of JSON objects using Jackson 2.x.class
Encode from anObject
stream to a byte stream of Smile objects using Jackson 2.x.class
Encode from anObject
stream to a byte stream of JSON objects using kotlinx.serialization. -
Uses of Encoder in org.springframework.http.codec.protobuf
Modifier and TypeClassDescriptionclass
Decode a byte stream into a Protocol Buffer and convert to Objects with kotlinx.serialization.class
ModifierConstructorDescriptionProtobufHttpMessageWriter
(Encoder<com.google.protobuf.Message> encoder) Create a newProtobufHttpMessageWriter
with the given encoder. -
Uses of Encoder in org.springframework.http.codec.xml
Modifier and TypeClassDescriptionclass
Encode from single value to a byte stream containing XML elements. -
Uses of Encoder in org.springframework.messaging.handler.invocation.reactive
Modifier and TypeMethodDescriptionAbstractEncoderMethodReturnValueHandler.getEncoders()
The configured encoders.ModifierConstructorDescriptionprotected
AbstractEncoderMethodReturnValueHandler
(List<Encoder<?>> encoders, ReactiveAdapterRegistry registry) -
Uses of Encoder in org.springframework.messaging.rsocket
Modifier and TypeMethodDescriptiondefault <T> Encoder<T>
RSocketStrategies.encoder
(ResolvableType elementType, MimeType mimeType) Find a compatible Encoder for the given element type.Modifier and TypeMethodDescriptionAppend to the list of encoders to use for serializing Objects to the data or metadata of aPayload
.Modifier and TypeMethodDescriptionApply the consumer to the list of configured encoders, immediately. -
Uses of Encoder in org.springframework.messaging.rsocket.annotation.support
Modifier and TypeMethodDescriptionRSocketMessageHandler.getEncoders()
Return the configuredencoders
.Modifier and TypeMethodDescriptionvoid
RSocketMessageHandler.setEncoders
(List<? extends Encoder<?>> encoders) Configure the encoders to use for encoding handler method return values.ModifierConstructorDescriptionRSocketPayloadReturnValueHandler
(List<Encoder<?>> encoders, ReactiveAdapterRegistry registry) -
Uses of Encoder in org.springframework.web.reactive.result.view
ModifierConstructorDescriptionHttpMessageWriterView
(Encoder<?> encoder) Constructor with anEncoder
.
CodecConfigurer.CustomCodecs.register(Object)
orCodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object)
instead.