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.
Interface Summary Interface Description ClientCodecConfigurer Extension ofCodecConfigurerfor HTTP message reader and writer options relevant on the client side.ClientCodecConfigurer.ClientDefaultCodecs CodecConfigurer.DefaultCodecsextension with extra client-side options.ClientCodecConfigurer.MultipartCodecs Registry and container for multipart HTTP message writers.CodecConfigurer Defines a common interface for configuring either client or server HTTP message readers and writers.CodecConfigurer.CustomCodecs Registry for custom HTTP message readers and writers.CodecConfigurer.DefaultCodecConfig Exposes the values of properties configured throughCodecConfigurer.defaultCodecs()that are applied to default codecs.CodecConfigurer.DefaultCodecs Customize or replace the HTTP message readers and writers registered by default.HttpMessageDecoder<T> Extension ofDecoderexposing extra methods relevant in the context of HTTP request or response body decoding.HttpMessageEncoder<T> Extension ofEncoderexposing extra methods relevant in the context of HTTP request or response body encoding.HttpMessageReader<T> Strategy for reading from aReactiveHttpInputMessageand decoding the stream of bytes to Objects of type<T>.HttpMessageWriter<T> Strategy for encoding a stream of objects of type<T>and writing the encoded stream of bytes to anReactiveHttpOutputMessage.ServerCodecConfigurer Extension ofCodecConfigurerfor HTTP message reader and writer options relevant on the server side.ServerCodecConfigurer.ServerDefaultCodecs CodecConfigurer.DefaultCodecsextension with extra client-side options.ServerSentEvent.Builder<T> A mutable builder for aSseEvent.Class Summary Class Description DecoderHttpMessageReader<T> HttpMessageReaderthat wraps and delegates to aDecoder.EncoderHttpMessageWriter<T> HttpMessageWriterthat wraps and delegates to anEncoder.FormHttpMessageReader Implementation of anHttpMessageReaderto read HTML form data, i.e.FormHttpMessageWriter HttpMessageWriterfor writing aMultiValueMap<String, String>as HTML form data, i.e.LoggingCodecSupport Base class forEncoder,Decoder,HttpMessageReader, orHttpMessageWriterthat uses a logger and shows potentially sensitive request data.ResourceHttpMessageReader HttpMessageReaderthat wraps and delegates to aResourceDecoderthat extracts the filename from the"Content-Disposition"header, if available, and passes it as theResourceDecoder.FILENAME_HINT.ResourceHttpMessageWriter HttpMessageWriterthat can write aResource.ServerSentEvent<T> Representation for a Server-Sent Event for use with Spring's reactive Web support.ServerSentEventHttpMessageReader Reader that supports a stream ofServerSentEventsand also plainObjectswhich is the same as anServerSentEventwith data only.ServerSentEventHttpMessageWriter HttpMessageWriterfor"text/event-stream"responses.