Package org.springframework.http.codec
Interface ServerCodecConfigurer.ServerDefaultCodecs
- All Superinterfaces:
CodecConfigurer.DefaultCodecs
- Enclosing interface:
- ServerCodecConfigurer
public static interface ServerCodecConfigurer.ServerDefaultCodecs extends CodecConfigurer.DefaultCodecs
CodecConfigurer.DefaultCodecs
extension with extra client-side options.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
multipartReader(HttpMessageReader<?> reader)
Configure theHttpMessageReader
to use for multipart requests.void
serverSentEventEncoder(Encoder<?> encoder)
Configure theEncoder
to use for Server-Sent Events.Methods inherited from interface org.springframework.http.codec.CodecConfigurer.DefaultCodecs
enableLoggingRequestDetails, jackson2JsonDecoder, jackson2JsonEncoder, jackson2SmileDecoder, jackson2SmileEncoder, jaxb2Decoder, jaxb2Encoder, maxInMemorySize, protobufDecoder, protobufEncoder
Method Detail
multipartReader
void multipartReader(HttpMessageReader<?> reader)
Configure theHttpMessageReader
to use for multipart requests.By default, if Synchronoss NIO Multipart is present, this is set to
MultipartHttpMessageReader
created with an instance ofSynchronossPartHttpMessageReader
.Note that
CodecConfigurer.DefaultCodecs.maxInMemorySize(int)
and/orCodecConfigurer.DefaultCodecs.enableLoggingRequestDetails(boolean)
, if configured, will be applied to the given reader, if applicable.- Parameters:
reader
- the message reader to use for multipart requests.- Since:
- 5.1.11
serverSentEventEncoder
void serverSentEventEncoder(Encoder<?> encoder)
Configure theEncoder
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.