Class DefaultServerCodecConfigurer
java.lang.Object
org.springframework.http.codec.support.DefaultServerCodecConfigurer
- All Implemented Interfaces:
- CodecConfigurer,- ServerCodecConfigurer
Default implementation of 
ServerCodecConfigurer.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.http.codec.CodecConfigurerCodecConfigurer.CustomCodecs, CodecConfigurer.DefaultCodecConfig, CodecConfigurer.DefaultCodecsNested classes/interfaces inherited from interface org.springframework.http.codec.ServerCodecConfigurerServerCodecConfigurer.ServerDefaultCodecs
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final org.springframework.http.codec.support.BaseCodecConfigurer.DefaultCustomCodecsprotected final org.springframework.http.codec.support.BaseDefaultCodecs
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Create a copy of thisCodecConfigurer.protected org.springframework.http.codec.support.BaseDefaultCodecsSub-classes should override this to create a deep copy ofBaseDefaultCodecswhich can be client or server specific.Register custom HTTP message readers or writers in addition to the ones registered by default.Provides a way to customize or replace HTTP message readers and writers registered by default.Obtain the configured HTTP message readers.Obtain the configured HTTP message writers.voidregisterDefaults(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 viaCodecConfigurer.customCodecs().Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.codec.CodecConfigurercustomCodecs, getReaders, getWriters, registerDefaults
- 
Field Details- 
defaultCodecsprotected final org.springframework.http.codec.support.BaseDefaultCodecs defaultCodecs
- 
customCodecsprotected final org.springframework.http.codec.support.BaseCodecConfigurer.DefaultCustomCodecs customCodecs
 
- 
- 
Constructor Details- 
DefaultServerCodecConfigurerpublic DefaultServerCodecConfigurer()
 
- 
- 
Method Details- 
defaultCodecsDescription copied from interface:CodecConfigurerProvides a way to customize or replace HTTP message readers and writers registered by default.- Specified by:
- defaultCodecsin interface- CodecConfigurer
- Specified by:
- defaultCodecsin interface- ServerCodecConfigurer
- See Also:
 
- 
cloneDescription copied from interface:CodecConfigurerCreate a copy of thisCodecConfigurer. 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.- Specified by:
- clonein interface- CodecConfigurer
- Specified by:
- clonein interface- ServerCodecConfigurer
 
- 
cloneDefaultCodecsprotected org.springframework.http.codec.support.BaseDefaultCodecs cloneDefaultCodecs()Sub-classes should override this to create a deep copy ofBaseDefaultCodecswhich can be client or server specific.
- 
registerDefaultspublic void registerDefaults(boolean shouldRegister) Description copied from interface:CodecConfigurerProvides a way to completely turn off registration of default HTTP message readers and writers, and instead rely only on the ones provided viaCodecConfigurer.customCodecs().By default this is set to "true"in which case default registrations are made; setting this tofalsedisables default registrations.- Specified by:
- registerDefaultsin interface- CodecConfigurer
 
- 
customCodecsDescription copied from interface:CodecConfigurerRegister custom HTTP message readers or writers in addition to the ones registered by default.- Specified by:
- customCodecsin interface- CodecConfigurer
 
- 
getReadersDescription copied from interface:CodecConfigurerObtain the configured HTTP message readers.- Specified by:
- getReadersin interface- CodecConfigurer
 
- 
getWritersDescription copied from interface:CodecConfigurerObtain the configured HTTP message writers.- Specified by:
- getWritersin interface- CodecConfigurer
 
 
-