Uses of Interface
org.springframework.core.codec.Encoder
Packages that use Encoder
Package
Description
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 TypeClassDescriptionclassAbstract base class forDecoderimplementations.classAbstract base class forEncoderclasses that can only deal with a single value.classEncoder forbytearrays.classEncoder forByteBuffers.final classEncode from aCharSequencestream to a bytes stream.classSimple pass-through encoder forDataBuffers.classEncoder forByteBufs.classEncoder forResources.classEncoder forResourceRegions. -
Uses of Encoder in org.springframework.http.codec
Subinterfaces of Encoder in org.springframework.http.codecModifier and TypeInterfaceDescriptioninterfaceExtension ofEncoderexposing extra methods relevant in the context of HTTP request or response body encoding.Methods in org.springframework.http.codec that return EncoderModifier and TypeMethodDescriptionEncoderHttpMessageWriter.getEncoder()Return theEncoderof this writer.Encoder<?>ServerSentEventHttpMessageWriter.getEncoder()Return the configuredEncoder, if any.Methods in org.springframework.http.codec with parameters of type EncoderModifier and TypeMethodDescriptionAdd a PartEncoder, internally wrapped withEncoderHttpMessageWriter.voidDeprecated.voidCodecConfigurer.DefaultCodecs.jackson2JsonEncoder(Encoder<?> encoder) Override the default Jackson JSONEncoder.voidCodecConfigurer.DefaultCodecs.jackson2SmileEncoder(Encoder<?> encoder) Override the default Jackson SmileEncoder.voidCodecConfigurer.DefaultCodecs.jaxb2Encoder(Encoder<?> encoder) Override the default JABX2Encoder.voidCodecConfigurer.DefaultCodecs.kotlinSerializationJsonEncoder(Encoder<?> encoder) Override the default Kotlin Serialization JSONEncoder.voidCodecConfigurer.DefaultCodecs.protobufEncoder(Encoder<?> encoder) Override the default ProtobufEncoder.voidServerCodecConfigurer.ServerDefaultCodecs.serverSentEventEncoder(Encoder<?> encoder) Configure theEncoderto 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 JSONEncoderfor encoding objects. -
Uses of Encoder in org.springframework.http.codec.cbor
Classes in org.springframework.http.codec.cbor that implement EncoderModifier and TypeClassDescriptionclassEncode from anObjectto bytes of CBOR objects using Jackson. -
Uses of Encoder in org.springframework.http.codec.json
Classes in org.springframework.http.codec.json that implement EncoderModifier and TypeClassDescriptionclassBase class providing support methods for Jackson 2.9 encoding.classEncode from anObjectstream to a byte stream of JSON objects using Jackson 2.9.classEncode from anObjectstream to a byte stream of Smile objects using Jackson 2.9.classEncode from anObjectstream 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 TypeClassDescriptionclassConstructors in org.springframework.http.codec.protobuf with parameters of type EncoderModifierConstructorDescriptionProtobufHttpMessageWriter(Encoder<com.google.protobuf.Message> encoder) Create a newProtobufHttpMessageWriterwith the given encoder. -
Uses of Encoder in org.springframework.http.codec.xml
Classes in org.springframework.http.codec.xml that implement EncoderModifier and TypeClassDescriptionclassEncode 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 EncoderModifierConstructorDescriptionprotectedAbstractEncoderMethodReturnValueHandler(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 TypeMethodDescriptionvoidRSocketMessageHandler.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.