public interface CodecConfigurer
ClientCodecConfigurer.create()
or
ServerCodecConfigurer.create()
.Modifier and Type | Interface and Description |
---|---|
static interface |
CodecConfigurer.CustomCodecs
Registry and container for custom HTTP message readers and writers.
|
static interface |
CodecConfigurer.DefaultCodecs
Assists with customizing the default HTTP message readers and writers.
|
Modifier and Type | Method and Description |
---|---|
CodecConfigurer.CustomCodecs |
customCodecs()
Register custom HTTP message readers or writers to use in addition to
the ones registered by default.
|
CodecConfigurer.DefaultCodecs |
defaultCodecs()
Configure or customize the default HTTP message readers and writers.
|
java.util.List<HttpMessageReader<?>> |
getReaders()
Obtain the configured HTTP message readers.
|
java.util.List<HttpMessageWriter<?>> |
getWriters()
Obtain the configured HTTP message writers.
|
void |
registerDefaults(boolean registerDefaults)
Whether to register default HTTP message readers and writers.
|
CodecConfigurer.DefaultCodecs defaultCodecs()
void registerDefaults(boolean registerDefaults)
By default this is set to "true"
; setting this to false
disables default HTTP message reader and writer registrations.
CodecConfigurer.CustomCodecs customCodecs()
java.util.List<HttpMessageReader<?>> getReaders()
java.util.List<HttpMessageWriter<?>> getWriters()