public interface ServerCodecConfigurer extends CodecConfigurer
CodecConfigurer
for HTTP message reader and writer
options relevant on the server side.
HTTP message readers for the following are registered by default:
byte[]
ByteBuffer
DataBuffer
Resource
String
MultiValueMap<String,String>
for form data
MultiValueMap<String,Object>
for multipart data
HTTP message writers registered by default:
byte[]
ByteBuffer
DataBuffer
Resource
String
MultiValueMap<String,String>
for form data
Modifier and Type | Interface and Description |
---|---|
static interface |
ServerCodecConfigurer.ServerDefaultCodecs
CodecConfigurer.DefaultCodecs extension with extra server-side options. |
CodecConfigurer.CustomCodecs, CodecConfigurer.DefaultCodecConfig, CodecConfigurer.DefaultCodecs
Modifier and Type | Method and Description |
---|---|
ServerCodecConfigurer |
clone()
Create a copy of this
CodecConfigurer . |
static ServerCodecConfigurer |
create()
Static factory method for a
ServerCodecConfigurer . |
ServerCodecConfigurer.ServerDefaultCodecs |
defaultCodecs()
Provides a way to customize or replace HTTP message readers and writers
registered by default.
|
customCodecs, getReaders, getWriters, registerDefaults
ServerCodecConfigurer.ServerDefaultCodecs defaultCodecs()
On the server side, built-in default also include customizations related to the encoder for SSE.
defaultCodecs
in interface CodecConfigurer
CodecConfigurer.registerDefaults(boolean)
ServerCodecConfigurer clone()
CodecConfigurer
. The returned clone has its
own lists of default and custom codecs and generally can be configured
independently. Keep in mind however that codec instances (if any are
configured) are themselves not cloned..clone
in interface CodecConfigurer
static ServerCodecConfigurer create()
ServerCodecConfigurer
.