public class DefaultClientCodecConfigurer extends java.lang.Object implements ClientCodecConfigurer
ClientCodecConfigurer
.ClientCodecConfigurer.ClientDefaultCodecs, ClientCodecConfigurer.MultipartCodecs
CodecConfigurer.CustomCodecs, CodecConfigurer.DefaultCodecs
Constructor and Description |
---|
DefaultClientCodecConfigurer() |
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.
|
ClientCodecConfigurer.ClientDefaultCodecs |
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 ClientCodecConfigurer.ClientDefaultCodecs defaultCodecs()
CodecConfigurer
defaultCodecs
in interface ClientCodecConfigurer
defaultCodecs
in interface CodecConfigurer
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