public static interface ServerCodecConfigurer.ServerDefaultCodecs extends CodecConfigurer.DefaultCodecs
CodecConfigurer.DefaultCodecs
extension with extra client-side options.Modifier and Type | Method and Description |
---|---|
void |
multipartReader(HttpMessageReader<?> reader)
Configure the
HttpMessageReader to use for multipart requests. |
void |
serverSentEventEncoder(Encoder<?> encoder)
Configure the
Encoder to use for Server-Sent Events. |
enableLoggingRequestDetails, jackson2JsonDecoder, jackson2JsonEncoder, jaxb2Decoder, jaxb2Encoder, maxInMemorySize, protobufDecoder, protobufEncoder
void multipartReader(HttpMessageReader<?> reader)
HttpMessageReader
to use for multipart requests.
By default, if
Synchronoss NIO Multipart
is present, this is set to
MultipartHttpMessageReader
created with an instance of
SynchronossPartHttpMessageReader
.
Note that CodecConfigurer.DefaultCodecs.maxInMemorySize(int)
and/or
CodecConfigurer.DefaultCodecs.enableLoggingRequestDetails(boolean)
, if configured, will be
applied to the given reader, if applicable.
reader
- the message reader to use for multipart requests.void serverSentEventEncoder(Encoder<?> encoder)
Encoder
to use for Server-Sent Events.
By default if this is not set, and Jackson is available, the
CodecConfigurer.DefaultCodecs.jackson2JsonEncoder(org.springframework.core.codec.Encoder<?>)
override is used instead. Use this method
to customize the SSE encoder.