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.
Note that maxInMemorySize(int), if configured, will be
applied to the given decoder.
decoder - the decoder instance to useJackson2JsonDecodervoid jackson2JsonEncoder(Encoder<?> encoder)
Encoder.encoder - the encoder instance to useJackson2JsonEncodervoid protobufDecoder(Decoder<?> decoder)
Decoder.
Note that maxInMemorySize(int), if configured, will be
applied to the given decoder.
decoder - the decoder instance to useProtobufDecodervoid protobufEncoder(Encoder<?> encoder)
Encoder.encoder - the encoder instance to useProtobufEncoder,
ProtobufHttpMessageWritervoid jaxb2Decoder(Decoder<?> decoder)
Decoder.
Note that maxInMemorySize(int), if configured, will be
applied to the given decoder.
decoder - the decoder instance to useJaxb2XmlDecodervoid jaxb2Encoder(Encoder<?> encoder)
Encoder.encoder - the encoder instance to useJaxb2XmlEncodervoid 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. In 5.1 most codecs are not limited except FormHttpMessageReader
which is limited to 256K. In 5.2 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