Package org.springframework.http.codec
@NonNullApi
@NonNullFields
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.
-
ClassDescriptionExtension of
CodecConfigurerfor HTTP message reader and writer options relevant on the client side.CodecConfigurer.DefaultCodecsextension with extra client-side options.Registry and container for multipart HTTP message writers.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.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.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 aResource.Extension ofCodecConfigurerfor HTTP message reader and writer options relevant on the server side.CodecConfigurer.DefaultCodecsextension with extra client-side options.Representation for a Server-Sent Event for use with Spring's reactive Web support.A mutable builder for aSseEvent.Reader that supports a stream ofServerSentEventsand also plainObjectswhich is the same as anServerSentEventwith data only.HttpMessageWriterfor"text/event-stream"responses.