Package | Description |
---|---|
org.springframework.http.codec |
Provides implementations of
Encoder
and Decoder for web use. |
org.springframework.http.codec.multipart |
Multipart support.
|
org.springframework.http.codec.protobuf |
Provides an encoder and a decoder for
Google Protocol Buffers.
|
Modifier and Type | Class and Description |
---|---|
class |
EncoderHttpMessageWriter<T>
HttpMessageWriter that wraps and delegates to an Encoder . |
class |
FormHttpMessageWriter
HttpMessageWriter for writing a MultiValueMap<String, String>
as HTML form data, i.e. |
class |
ResourceHttpMessageWriter
HttpMessageWriter that can write a Resource . |
class |
ServerSentEventHttpMessageWriter
HttpMessageWriter for "text/event-stream" responses. |
Modifier and Type | Method and Description |
---|---|
List<HttpMessageWriter<?>> |
CodecConfigurer.getWriters()
Obtain the configured HTTP message writers.
|
Modifier and Type | Method and Description |
---|---|
ClientCodecConfigurer.MultipartCodecs |
ClientCodecConfigurer.MultipartCodecs.writer(HttpMessageWriter<?> writer)
Add a Part
HttpMessageWriter . |
void |
CodecConfigurer.CustomCodecs.writer(HttpMessageWriter<?> writer)
Add a custom
HttpMessageWriter . |
Modifier and Type | Class and Description |
---|---|
class |
MultipartHttpMessageWriter
HttpMessageWriter for writing a MultiValueMap<String, ?>
as multipart form data, i.e. |
Modifier and Type | Method and Description |
---|---|
List<HttpMessageWriter<?>> |
MultipartHttpMessageWriter.getPartWriters()
Return the configured part writers.
|
Constructor and Description |
---|
MultipartHttpMessageWriter(List<HttpMessageWriter<?>> partWriters,
HttpMessageWriter<org.springframework.util.MultiValueMap<String,String>> formWriter)
Constructor with explicit list of writers for serializing parts and a
writer for plain form data to fall back when no media type is specified
and the actual map consists of String values only.
|
Constructor and Description |
---|
MultipartHttpMessageWriter(List<HttpMessageWriter<?>> partWriters)
Constructor with explicit list of writers for serializing parts.
|
MultipartHttpMessageWriter(List<HttpMessageWriter<?>> partWriters,
HttpMessageWriter<org.springframework.util.MultiValueMap<String,String>> formWriter)
Constructor with explicit list of writers for serializing parts and a
writer for plain form data to fall back when no media type is specified
and the actual map consists of String values only.
|
Modifier and Type | Class and Description |
---|---|
class |
ProtobufHttpMessageWriter
HttpMessageWriter that can write a protobuf Message and adds
X-Protobuf-Schema , X-Protobuf-Message headers and a
delimited=true parameter is added to the content type if a flux is serialized. |