public static interface ServerCodecConfigurer.ServerDefaultCodecs extends CodecConfigurer.DefaultCodecs
CodecConfigurer.DefaultCodecs
extension with extra client-side options.Modifier and Type | Method and Description |
---|---|
void |
serverSentEventEncoder(Encoder<?> encoder)
Configure the
Encoder to use for Server-Sent Events. |
enableLoggingRequestDetails, jackson2JsonDecoder, jackson2JsonEncoder, jaxb2Decoder, jaxb2Encoder, protobufDecoder, protobufEncoder
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 property
if you want to further customize the SSE encoder.