接口 ServerCodecConfigurer
- 所有超级接口:
CodecConfigurer
- 所有已知实现类:
DefaultServerCodecConfigurer
Extension of
CodecConfigurer for HTTP message reader and writer
options relevant on the server side.
HTTP message readers for the following are registered by default:
ByteBufferDataBufferResourceStringMultiValueMap<String,String>for form dataMultiValueMap<String,Object>for multipart data- JSON and Smile, if Jackson is present
- XML, if JAXB2 is present
byte[]
HTTP message writers registered by default:
ByteBufferDataBufferResourceStringMultiValueMap<String,String>for form data- JSON and Smile, if Jackson is present
- XML, if JAXB2 is present
- Server-Sent Events
byte[]
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
嵌套类概要
嵌套类修饰符和类型接口说明static interfaceCodecConfigurer.DefaultCodecsextension with extra server-side options.从接口继承的嵌套类/接口 cn.taketoday.http.codec.CodecConfigurer
CodecConfigurer.CustomCodecs, CodecConfigurer.DefaultCodecConfig, CodecConfigurer.DefaultCodecs, CodecConfigurer.MultipartCodecs -
方法概要
修饰符和类型方法说明clone()Create a copy of thisCodecConfigurer.static ServerCodecConfigurercreate()Static factory method for aServerCodecConfigurer.Provides a way to customize or replace HTTP message readers and writers registered by default.从接口继承的方法 cn.taketoday.http.codec.CodecConfigurer
customCodecs, getReaders, getWriters, registerDefaults
-
方法详细资料
-
defaultCodecs
ServerCodecConfigurer.ServerDefaultCodecs defaultCodecs()Provides a way to customize or replace HTTP message readers and writers registered by default.On the server side, built-in default also include customizations related to the encoder for SSE.
- 指定者:
defaultCodecs在接口中CodecConfigurer- 另请参阅:
-
clone
ServerCodecConfigurer clone()Create 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
-
create
Static factory method for aServerCodecConfigurer.
-