类 BaseCodecConfigurer
java.lang.Object
cn.taketoday.http.codec.support.BaseCodecConfigurer
- 所有已实现的接口:
CodecConfigurer
Default implementation of
CodecConfigurer that serves as a base for
client and server specific variants.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Brian Clozel
-
嵌套类概要
嵌套类修饰符和类型类说明protected static final classDefault implementation ofCustomCodecs.从接口继承的嵌套类/接口 cn.taketoday.http.codec.CodecConfigurer
CodecConfigurer.CustomCodecs, CodecConfigurer.DefaultCodecConfig, CodecConfigurer.DefaultCodecs, CodecConfigurer.MultipartCodecs -
字段概要
字段修饰符和类型字段说明protected final BaseCodecConfigurer.DefaultCustomCodecsprotected final BaseDefaultCodecs -
构造器概要
构造器限定符构造器说明protectedCreate a deep copy of the givenBaseCodecConfigurer.(专用程序包)BaseCodecConfigurer(BaseDefaultCodecs defaultCodecs) Constructor with the baseBaseDefaultCodecsto use, which can be a client or server specific variant. -
方法概要
修饰符和类型方法说明abstract CodecConfigurerclone()Create a copy of thisCodecConfigurer.protected abstract 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().
-
字段详细资料
-
defaultCodecs
-
customCodecs
-
-
构造器详细资料
-
BaseCodecConfigurer
BaseCodecConfigurer(BaseDefaultCodecs defaultCodecs) Constructor with the baseBaseDefaultCodecsto use, which can be a client or server specific variant. -
BaseCodecConfigurer
Create a deep copy of the givenBaseCodecConfigurer.
-
-
方法详细资料
-
cloneDefaultCodecs
Sub-classes should override this to create a deep copy ofBaseDefaultCodecswhich can be client or server specific. -
defaultCodecs
从接口复制的说明:CodecConfigurerProvides a way to customize or replace HTTP message readers and writers registered by default.- 指定者:
defaultCodecs在接口中CodecConfigurer- 另请参阅:
-
registerDefaults
public void registerDefaults(boolean shouldRegister) 从接口复制的说明: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.- 指定者:
registerDefaults在接口中CodecConfigurer
-
customCodecs
从接口复制的说明:CodecConfigurerRegister custom HTTP message readers or writers in addition to the ones registered by default.- 指定者:
customCodecs在接口中CodecConfigurer
-
getReaders
从接口复制的说明:CodecConfigurerObtain the configured HTTP message readers.- 指定者:
getReaders在接口中CodecConfigurer
-
getWriters
从接口复制的说明:CodecConfigurerObtain the configured HTTP message writers.- 指定者:
getWriters在接口中CodecConfigurer
-
clone
从接口复制的说明: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.- 指定者:
clone在接口中CodecConfigurer- 覆盖:
clone在类中Object
-