public static interface CodecConfigurer.DefaultCodecs
ClientDefaultCodecs
and
ServerDefaultCodecs
.Modifier and Type | Method and Description |
---|---|
void |
enableLoggingRequestDetails(boolean enable)
Whether to log form data at DEBUG level, and headers at TRACE level.
|
void |
jackson2JsonDecoder(Decoder<?> decoder)
Override the default Jackson JSON
Decoder . |
void |
jackson2JsonEncoder(Encoder<?> encoder)
Override the default Jackson JSON
Encoder . |
void |
jaxb2Decoder(Decoder<?> decoder)
Override the default JAXB2
Decoder . |
void |
jaxb2Encoder(Encoder<?> encoder)
Override the default JABX2
Encoder . |
void |
maxInMemorySize(int byteCount)
Configure a limit on the number of bytes that can be buffered whenever
the input stream needs to be aggregated.
|
void |
protobufDecoder(Decoder<?> decoder)
Override the default Protobuf
Decoder . |
void |
protobufEncoder(Encoder<?> encoder)
Override the default Protobuf
Encoder . |
void jackson2JsonDecoder(Decoder<?> decoder)
Decoder
.decoder
- the decoder instance to useJackson2JsonDecoder
void jackson2JsonEncoder(Encoder<?> encoder)
Encoder
.encoder
- the encoder instance to useJackson2JsonEncoder
void protobufDecoder(Decoder<?> decoder)
Decoder
.decoder
- the decoder instance to useProtobufDecoder
void protobufEncoder(Encoder<?> encoder)
Encoder
.encoder
- the encoder instance to useProtobufEncoder
,
ProtobufHttpMessageWriter
void jaxb2Decoder(Decoder<?> decoder)
Decoder
.decoder
- the decoder instance to useJaxb2XmlDecoder
void jaxb2Encoder(Encoder<?> encoder)
Encoder
.encoder
- the encoder instance to useJaxb2XmlEncoder
void maxInMemorySize(int byteCount)
DataBuffer
,
ByteBuffer
, byte[]
,
Resource
, String
, etc.
It can also occur when splitting the input stream, e.g. delimited text,
in which case the limit applies to data buffered between delimiters.
By default this is not set, in which case individual codec defaults apply. All codecs are limited to 256K by default.
byteCount
- the max number of bytes to buffer, or -1 for unlimitedvoid enableLoggingRequestDetails(boolean enable)
By default set to false
so that request details are not shown.
enable
- whether to enable or not