public static interface ClientCodecConfigurer.ClientDefaultCodecs extends CodecConfigurer.DefaultCodecs
CodecConfigurer.DefaultCodecs
extension with extra client-side options.Modifier and Type | Method and Description |
---|---|
ClientCodecConfigurer.MultipartCodecs |
multipartCodecs()
Configure encoders or writers for use with
MultipartHttpMessageWriter . |
void |
serverSentEventDecoder(Decoder<?> decoder)
Configure the
Decoder to use for Server-Sent Events. |
enableLoggingRequestDetails, jackson2JsonDecoder, jackson2JsonEncoder, jackson2SmileDecoder, jackson2SmileEncoder, jaxb2Decoder, jaxb2Encoder, maxInMemorySize, protobufDecoder, protobufEncoder
ClientCodecConfigurer.MultipartCodecs multipartCodecs()
MultipartHttpMessageWriter
.void serverSentEventDecoder(Decoder<?> decoder)
Decoder
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