Package org.springframework.http.codec
@NullMarked
package org.springframework.http.codec
Provides implementations of
Encoder
and Decoder for web use.
Also declares a high-level
HttpMessageReader and
HttpMessageWriter for reading and
writing the body of HTTP requests and responses.
-
ClassDescriptionAbstractJacksonDecoder<T extends tools.jackson.databind.ObjectMapper>Abstract base class for Jackson 3.x decoding, leveraging non-blocking parsing.AbstractJacksonEncoder<T extends tools.jackson.databind.ObjectMapper>Base class providing support methods for Jackson 3.x encoding.Extension of
CodecConfigurerfor HTTP message reader and writer options relevant on the client side.CodecConfigurer.DefaultCodecsextension with extra client-side options.Defines a common interface for configuring either client or server HTTP message readers and writers.Registry for custom HTTP message readers and writers.Exposes the values of properties configured throughCodecConfigurer.defaultCodecs()that are applied to default codecs.Customize or replace the HTTP message readers and writers registered by default.Registry and container for multipart HTTP message writers.HttpMessageReaderthat wraps and delegates to aDecoder.HttpMessageWriterthat wraps and delegates to anEncoder.Implementation of anHttpMessageReaderto read HTML form data, i.e.HttpMessageWriterfor writing aMultiValueMap<String, String>as HTML form data, i.e.Extension ofDecoderexposing extra methods relevant in the context of HTTP request or response body decoding.Extension ofEncoderexposing extra methods relevant in the context of HTTP request or response body encoding.Strategy for reading from aReactiveHttpInputMessageand decoding the stream of bytes to Objects of type<T>.Strategy for encoding a stream of objects of type<T>and writing the encoded stream of bytes to anReactiveHttpOutputMessage.JacksonCodecSupport<T extends tools.jackson.databind.ObjectMapper>Base class providing support methods for Jackson 3.x encoding and decoding.KotlinSerializationBinaryDecoder<T extends kotlinx.serialization.BinaryFormat>Abstract base class forDecoderimplementations that defer to Kotlin binary serializers.KotlinSerializationBinaryEncoder<T extends kotlinx.serialization.BinaryFormat>Abstract base class forEncoderimplementations that defer to Kotlin binary serializers.KotlinSerializationStringDecoder<T extends kotlinx.serialization.StringFormat>Abstract base class forDecoderimplementations that defer to Kotlin string serializers.KotlinSerializationStringEncoder<T extends kotlinx.serialization.StringFormat>Abstract base class forEncoderimplementations that defer to Kotlin string serializers.KotlinSerializationSupport<T extends kotlinx.serialization.SerialFormat>Base class providing support methods for encoding and decoding with Kotlin serialization.Base class forEncoder,Decoder,HttpMessageReader, orHttpMessageWriterthat uses a logger and shows potentially sensitive request data.HttpMessageReaderthat wraps and delegates to aResourceDecoderthat extracts the filename from the"Content-Disposition"header, if available, and passes it as theResourceDecoder.FILENAME_HINT.HttpMessageWriterthat can write aResourcefrom both client and server perspectives.Extension ofCodecConfigurerfor HTTP message reader and writer options relevant on the server side.CodecConfigurer.DefaultCodecsextension with extra server-side options.Representation for a Server-Sent Event for use with Spring's reactive Web support.A mutable builder for aServerSentEvent.Reader that supports a stream ofServerSentEventsand also plainObjectswhich is the same as anServerSentEventwith data only.HttpMessageWriterfor"text/event-stream"responses.