Uses of Interface
org.springframework.core.codec.Encoder
Packages that use 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
Classes in org.springframework.core.codec that implement EncoderModifier 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
Subinterfaces of Encoder in org.springframework.http.codecModifier and TypeInterfaceDescriptioninterface
Extension ofEncoder
exposing extra methods relevant in the context of HTTP request or response body encoding.Classes in org.springframework.http.codec that implement EncoderModifier 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.Methods in org.springframework.http.codec that return EncoderModifier and TypeMethodDescriptionEncoderHttpMessageWriter.getEncoder()
Return theEncoder
of this writer.Encoder<?>
ServerSentEventHttpMessageWriter.getEncoder()
Return the configuredEncoder
, if any.Methods in org.springframework.http.codec with parameters of type EncoderModifier 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.Constructors in org.springframework.http.codec with parameters of type EncoderModifierConstructorDescriptionEncoderHttpMessageWriter
(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
Classes in org.springframework.http.codec.cbor that implement EncoderModifier 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
Classes in org.springframework.http.codec.json that implement EncoderModifier 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
Classes in org.springframework.http.codec.protobuf that implement EncoderModifier and TypeClassDescriptionclass
Decode a byte stream into a Protocol Buffer and convert to Objects with kotlinx.serialization.class
Constructors in org.springframework.http.codec.protobuf with parameters of type EncoderModifierConstructorDescriptionProtobufHttpMessageWriter
(Encoder<com.google.protobuf.Message> encoder) Create a newProtobufHttpMessageWriter
with the given encoder. -
Uses of Encoder in org.springframework.http.codec.xml
Classes in org.springframework.http.codec.xml that implement EncoderModifier and TypeClassDescriptionclass
Encode from single value to a byte stream containing XML elements. -
Uses of Encoder in org.springframework.messaging.handler.invocation.reactive
Methods in org.springframework.messaging.handler.invocation.reactive that return types with arguments of type EncoderModifier and TypeMethodDescriptionAbstractEncoderMethodReturnValueHandler.getEncoders()
The configured encoders.Constructor parameters in org.springframework.messaging.handler.invocation.reactive with type arguments of type EncoderModifierConstructorDescriptionprotected
AbstractEncoderMethodReturnValueHandler
(List<Encoder<?>> encoders, ReactiveAdapterRegistry registry) -
Uses of Encoder in org.springframework.messaging.rsocket
Methods in org.springframework.messaging.rsocket that return EncoderModifier and TypeMethodDescriptiondefault <T> Encoder<T>
RSocketStrategies.encoder
(ResolvableType elementType, MimeType mimeType) Find a compatible Encoder for the given element type.Methods in org.springframework.messaging.rsocket that return types with arguments of type EncoderMethods in org.springframework.messaging.rsocket with parameters of type EncoderModifier and TypeMethodDescriptionAppend to the list of encoders to use for serializing Objects to the data or metadata of aPayload
.Method parameters in org.springframework.messaging.rsocket with type arguments of type EncoderModifier and TypeMethodDescriptionApply the consumer to the list of configured encoders, immediately. -
Uses of Encoder in org.springframework.messaging.rsocket.annotation.support
Methods in org.springframework.messaging.rsocket.annotation.support that return types with arguments of type EncoderModifier and TypeMethodDescriptionRSocketMessageHandler.getEncoders()
Return the configuredencoders
.Method parameters in org.springframework.messaging.rsocket.annotation.support with type arguments of type EncoderModifier and TypeMethodDescriptionvoid
RSocketMessageHandler.setEncoders
(List<? extends Encoder<?>> encoders) Configure the encoders to use for encoding handler method return values.Constructor parameters in org.springframework.messaging.rsocket.annotation.support with type arguments of type EncoderModifierConstructorDescriptionRSocketPayloadReturnValueHandler
(List<Encoder<?>> encoders, ReactiveAdapterRegistry registry) -
Uses of Encoder in org.springframework.web.reactive.result.view
Constructors in org.springframework.web.reactive.result.view with parameters of type EncoderModifierConstructorDescriptionHttpMessageWriterView
(Encoder<?> encoder) Constructor with anEncoder
.
CodecConfigurer.CustomCodecs.register(Object)
orCodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object)
instead.