接口 ClientCodecConfigurer.ClientDefaultCodecs
public static interface ClientCodecConfigurer.ClientDefaultCodecs extends CodecConfigurer.DefaultCodecs
CodecConfigurer.DefaultCodecs
extension with extra client-side options.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ClientCodecConfigurer.MultipartCodecs
multipartCodecs()
Configure encoders or writers for use withMultipartHttpMessageWriter
.void
serverSentEventDecoder(Decoder<?> decoder)
Configure theDecoder
to use for Server-Sent Events.从接口继承的方法 org.springframework.http.codec.CodecConfigurer.DefaultCodecs
enableLoggingRequestDetails, jackson2JsonDecoder, jackson2JsonEncoder, jackson2SmileDecoder, jackson2SmileEncoder, jaxb2Decoder, jaxb2Encoder, maxInMemorySize, protobufDecoder, protobufEncoder
方法详细资料
multipartCodecs
ClientCodecConfigurer.MultipartCodecs multipartCodecs()
Configure encoders or writers for use withMultipartHttpMessageWriter
.
serverSentEventDecoder
void serverSentEventDecoder(Decoder<?> decoder)
Configure theDecoder
to use for Server-Sent Events.By default if this is not set, and Jackson is available, the
CodecConfigurer.DefaultCodecs.jackson2JsonDecoder(org.springframework.core.codec.Decoder<?>)
override is used instead. Use this property if you want to further customize the SSE decoder.Note that
CodecConfigurer.DefaultCodecs.maxInMemorySize(int)
, if configured, will be applied to the given decoder.- 参数:
decoder
- the decoder to use