public class DefaultServerCodecConfigurer extends java.lang.Object implements ServerCodecConfigurer
ServerCodecConfigurer
.ServerCodecConfigurer.ServerDefaultCodecs
CodecConfigurer.CustomCodecs, CodecConfigurer.DefaultCodecs
Constructor and Description |
---|
DefaultServerCodecConfigurer() |
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.
|
ServerCodecConfigurer.ServerDefaultCodecs |
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 shouldRegister)
Whether to register default HTTP message readers and writers.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
customCodecs, getReaders, getWriters, registerDefaults
public ServerCodecConfigurer.ServerDefaultCodecs defaultCodecs()
CodecConfigurer
defaultCodecs
in interface CodecConfigurer
defaultCodecs
in interface ServerCodecConfigurer
public void registerDefaults(boolean shouldRegister)
CodecConfigurer
By default this is set to "true"
; setting this to false
disables default HTTP message reader and writer registrations.
registerDefaults
in interface CodecConfigurer
public CodecConfigurer.CustomCodecs customCodecs()
CodecConfigurer
customCodecs
in interface CodecConfigurer
public java.util.List<HttpMessageReader<?>> getReaders()
CodecConfigurer
getReaders
in interface CodecConfigurer
public java.util.List<HttpMessageWriter<?>> getWriters()
CodecConfigurer
getWriters
in interface CodecConfigurer