public class DefaultServerCodecConfigurer extends Object implements ServerCodecConfigurer
ServerCodecConfigurer.| Modifier and Type | Class and Description |
|---|---|
protected static class |
org.springframework.http.codec.support.BaseCodecConfigurer.DefaultCustomCodecs
Default implementation of
CustomCodecs. |
ServerCodecConfigurer.ServerDefaultCodecsCodecConfigurer.CustomCodecs, CodecConfigurer.DefaultCodecConfig, CodecConfigurer.DefaultCodecs| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.http.codec.support.BaseCodecConfigurer.DefaultCustomCodecs |
customCodecs |
protected org.springframework.http.codec.support.BaseDefaultCodecs |
defaultCodecs |
| Constructor and Description |
|---|
DefaultServerCodecConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
DefaultServerCodecConfigurer |
clone()
Create a copy of this
CodecConfigurer. |
protected org.springframework.http.codec.support.BaseDefaultCodecs |
cloneDefaultCodecs()
Subclasses should override this to create a deep copy of
BaseDefaultCodecs which can be client or server specific. |
CodecConfigurer.CustomCodecs |
customCodecs()
Register custom HTTP message readers or writers in addition to the ones
registered by default.
|
ServerCodecConfigurer.ServerDefaultCodecs |
defaultCodecs()
Provides a way to customize or replace HTTP message readers and writers
registered by default.
|
List<HttpMessageReader<?>> |
getReaders()
Obtain the configured HTTP message readers.
|
List<HttpMessageWriter<?>> |
getWriters()
Obtain the configured HTTP message writers.
|
void |
registerDefaults(boolean shouldRegister)
Provides a way to completely turn off registration of default HTTP message
readers and writers, and instead rely only on the ones provided via
CodecConfigurer.customCodecs(). |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatecustomCodecs, getReaders, getWriters, registerDefaultsprotected final org.springframework.http.codec.support.BaseDefaultCodecs defaultCodecs
protected final org.springframework.http.codec.support.BaseCodecConfigurer.DefaultCustomCodecs customCodecs
public ServerCodecConfigurer.ServerDefaultCodecs defaultCodecs()
CodecConfigurerdefaultCodecs in interface CodecConfigurerdefaultCodecs in interface ServerCodecConfigurerCodecConfigurer.registerDefaults(boolean)public DefaultServerCodecConfigurer clone()
CodecConfigurerCodecConfigurer. 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 CodecConfigurerclone in interface ServerCodecConfigurerprotected org.springframework.http.codec.support.BaseDefaultCodecs cloneDefaultCodecs()
BaseDefaultCodecs which can be client or server specific.public void registerDefaults(boolean shouldRegister)
CodecConfigurerCodecConfigurer.customCodecs().
By default this is set to "true" in which case default
registrations are made; setting this to false disables default
registrations.
registerDefaults in interface CodecConfigurerpublic CodecConfigurer.CustomCodecs customCodecs()
CodecConfigurercustomCodecs in interface CodecConfigurerpublic List<HttpMessageReader<?>> getReaders()
CodecConfigurergetReaders in interface CodecConfigurerpublic List<HttpMessageWriter<?>> getWriters()
CodecConfigurergetWriters in interface CodecConfigurer