接口 ClientCodecConfigurer
- 所有超级接口:
CodecConfigurer
- 所有已知实现类:
DefaultClientCodecConfigurer
public interface ClientCodecConfigurer extends CodecConfigurer
Extension ofCodecConfigurer
for HTTP message reader and writer options relevant on the client side.HTTP message readers for the following are registered by default:
ByteBuffer
DataBuffer
Resource
String
MultiValueMap<String,String>
for form data- JSON and Smile, if Jackson is present
- XML, if JAXB2 is present
- Server-Sent Events
byte[]
HTTP message writers registered by default:
ByteBuffer
DataBuffer
Resource
String
MultiValueMap<String,String>
for form dataMultiValueMap<String,Object>
for multipart data- JSON and Smile, if Jackson is present
- XML, if JAXB2 is present
byte[]
- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interface
ClientCodecConfigurer.ClientDefaultCodecs
CodecConfigurer.DefaultCodecs
extension with extra client-side options.static interface
ClientCodecConfigurer.MultipartCodecs
Registry and container for multipart HTTP message writers.从接口继承的嵌套类/接口 org.springframework.http.codec.CodecConfigurer
CodecConfigurer.CustomCodecs, CodecConfigurer.DefaultCodecConfig, CodecConfigurer.DefaultCodecs
方法概要
所有方法 静态方法 实例方法 抽象方法 修饰符和类型 方法 说明 ClientCodecConfigurer
clone()
Create a copy of thisCodecConfigurer
.static ClientCodecConfigurer
create()
Static factory method for aClientCodecConfigurer
.ClientCodecConfigurer.ClientDefaultCodecs
defaultCodecs()
Provides a way to customize or replace HTTP message readers and writers registered by default.从接口继承的方法 org.springframework.http.codec.CodecConfigurer
customCodecs, getReaders, getWriters, registerDefaults
方法详细资料
defaultCodecs
ClientCodecConfigurer.ClientDefaultCodecs defaultCodecs()
Provides a way to customize or replace HTTP message readers and writers registered by default.On the client side, built-in default also include customizations related to multipart readers and writers, as well as the decoder for SSE.
clone
ClientCodecConfigurer 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 ClientCodecConfigurer create()
Static factory method for aClientCodecConfigurer
.