public static interface CodecConfigurer.CustomCodecs
Modifier and Type | Method and Description |
---|---|
void |
decoder(Decoder<?> decoder)
Add a custom
Decoder internally wrapped with
DecoderHttpMessageReader ). |
void |
encoder(Encoder<?> encoder)
Add a custom
Encoder , internally wrapped with
EncoderHttpMessageWriter . |
void |
reader(HttpMessageReader<?> reader)
Add a custom
HttpMessageReader . |
void |
withDefaultCodecConfig(Consumer<CodecConfigurer.DefaultCodecConfig> codecsConfigConsumer)
Register a callback for the
configuration
applied to default codecs. |
void |
writer(HttpMessageWriter<?> writer)
Add a custom
HttpMessageWriter . |
void decoder(Decoder<?> decoder)
Decoder
internally wrapped with
DecoderHttpMessageReader
).decoder
- the decoder to addvoid encoder(Encoder<?> encoder)
Encoder
, internally wrapped with
EncoderHttpMessageWriter
.encoder
- the encoder to addvoid reader(HttpMessageReader<?> reader)
HttpMessageReader
. For readers of type
DecoderHttpMessageReader
consider using the shortcut
decoder(Decoder)
instead.reader
- the reader to addvoid writer(HttpMessageWriter<?> writer)
HttpMessageWriter
. For writers of type
EncoderHttpMessageWriter
consider using the shortcut
encoder(Encoder)
instead.writer
- the writer to addvoid withDefaultCodecConfig(Consumer<CodecConfigurer.DefaultCodecConfig> codecsConfigConsumer)
configuration
applied to default codecs. This allows custom codecs to follow general
guidelines applied to default ones, such as logging details and limiting
the amount of buffered data.codecsConfigConsumer
- the default codecs configuration callback