程序包 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.
接口概要 接口 说明 ClientCodecConfigurer Extension ofCodecConfigurer
for HTTP message reader and writer options relevant on the client side.ClientCodecConfigurer.ClientDefaultCodecs CodecConfigurer.DefaultCodecs
extension 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 ofDecoder
exposing extra methods relevant in the context of HTTP request or response body decoding.HttpMessageEncoder<T> Extension ofEncoder
exposing extra methods relevant in the context of HTTP request or response body encoding.HttpMessageReader<T> Strategy for reading from aReactiveHttpInputMessage
and 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 ofCodecConfigurer
for HTTP message reader and writer options relevant on the server side.ServerCodecConfigurer.ServerDefaultCodecs CodecConfigurer.DefaultCodecs
extension with extra client-side options.ServerSentEvent.Builder<T> A mutable builder for aSseEvent
.类概要 类 说明 DecoderHttpMessageReader<T> HttpMessageReader
that wraps and delegates to aDecoder
.EncoderHttpMessageWriter<T> HttpMessageWriter
that wraps and delegates to anEncoder
.FormHttpMessageReader Implementation of anHttpMessageReader
to read HTML form data, i.e.FormHttpMessageWriter HttpMessageWriter
for writing aMultiValueMap<String, String>
as HTML form data, i.e.LoggingCodecSupport Base class forEncoder
,Decoder
,HttpMessageReader
, orHttpMessageWriter
that uses a logger and shows potentially sensitive request data.ResourceHttpMessageReader HttpMessageReader
that wraps and delegates to aResourceDecoder
that extracts the filename from the"Content-Disposition"
header, if available, and passes it as theResourceDecoder.FILENAME_HINT
.ResourceHttpMessageWriter HttpMessageWriter
that 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 ofServerSentEvents
and also plainObjects
which is the same as anServerSentEvent
with data only.ServerSentEventHttpMessageWriter HttpMessageWriter
for"text/event-stream"
responses.