CodecConfigurer that serves as a base for
client and server specific variants.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | BaseCodecConfigurer.
Default implementation of |
| Modifier and Type | Field and Description |
|---|---|
| protected final BaseCodecConfigurer. | |
| protected final BaseDefaultCodecs |
| Access | Constructor and Description |
|---|---|
| pack-priv | BaseCodecConfigurer(BaseDefaultCodecs defaultCodecs)
Constructor with the base |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract CodecConfigurer | clone()
Redeclares org. Overrides java. Create a copy of this |
| protected abstract BaseDefaultCodecs | cloneDefaultCodecs()
Subclasses should override this to create a deep copy of
|
| public CodecConfigurer. | customCodecs()
Implements org. Register custom HTTP message readers or writers in addition to the ones registered by default. |
| public CodecConfigurer. | defaultCodecs()
Implements org. Provides a way to customize or replace HTTP message readers and writers registered by default. |
| public List | getReaders()
Implements org. Obtain the configured HTTP message readers. |
| public List | getWriters()
Implements org. Obtain the configured HTTP message writers. |
| public void | registerDefaults(boolean shouldRegister)
Implements org. Provides a way to completely turn off registration of default HTTP message
readers and writers, and instead rely only on the ones provided via
|
| customCodecs | back to summary |
|---|---|
| protected final BaseCodecConfigurer. | |
| defaultCodecs | back to summary |
|---|---|
| protected final BaseDefaultCodecs defaultCodecs | |
| BaseCodecConfigurer | back to summary |
|---|---|
| pack-priv BaseCodecConfigurer(BaseDefaultCodecs defaultCodecs) Constructor with the base | |
| BaseCodecConfigurer | back to summary |
|---|---|
| protected BaseCodecConfigurer(BaseCodecConfigurer other) Create a deep copy of the given
| |
| clone | back to summary |
|---|---|
| public abstract CodecConfigurer clone() Redeclares org. Overrides java. Doc from org. Create a copy of this
| |
| cloneDefaultCodecs | back to summary |
|---|---|
| protected abstract BaseDefaultCodecs cloneDefaultCodecs() Subclasses should override this to create a deep copy of
| |
| customCodecs | back to summary |
|---|---|
| public CodecConfigurer. Implements org. Doc from org. Register custom HTTP message readers or writers in addition to the ones registered by default.
| |
| defaultCodecs | back to summary |
|---|---|
| public CodecConfigurer. Implements org. Doc from org. Provides a way to customize or replace HTTP message readers and writers registered by default.
| |
| getReaders | back to summary |
|---|---|
| public List Implements org. Doc from org. Obtain the configured HTTP message readers.
| |
| getWriters | back to summary |
|---|---|
| public List Implements org. Doc from org. Obtain the configured HTTP message writers.
| |
| registerDefaults | back to summary |
|---|---|
| public void registerDefaults(boolean shouldRegister) Implements org. Doc from org. Provides a way to completely turn off registration of default HTTP message
readers and writers, and instead rely only on the ones provided via
By default this is set to
| |
CustomCodecs.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Map | |
| private final Map | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | DefaultCustomCodecs(BaseCodecConfigurer.
Create a deep copy of the given |
| defaultConfigConsumers | back to summary |
|---|---|
| private final List<Consumer<CodecConfigurer. | |
| objectReaders | back to summary |
|---|---|
| private final Map<HttpMessageReader<?>, Boolean> objectReaders | |
| objectWriters | back to summary |
|---|---|
| private final Map<HttpMessageWriter<?>, Boolean> objectWriters | |
| typedReaders | back to summary |
|---|---|
| private final Map<HttpMessageReader<?>, Boolean> typedReaders | |
| typedWriters | back to summary |
|---|---|
| private final Map<HttpMessageWriter<?>, Boolean> typedWriters | |
| DefaultCustomCodecs | back to summary |
|---|---|
| pack-priv DefaultCustomCodecs() | |
| DefaultCustomCodecs | back to summary |
|---|---|
| pack-priv DefaultCustomCodecs(BaseCodecConfigurer. Create a deep copy of the given
| |
| addCodec | back to summary |
|---|---|
| private void addCodec(Object codec, boolean applyDefaultConfig) | |
| decoder | back to summary |
|---|---|
| public void decoder(Decoder<?> decoder) Implements org. Doc from org. Add a custom
| |
| encoder | back to summary |
|---|---|
| public void encoder(Encoder<?> encoder) Implements org. Doc from org. Add a custom
| |
| getDefaultConfigConsumers | back to summary |
|---|---|
| pack-priv List | |
| getObjectReaders | back to summary |
|---|---|
| pack-priv Map | |
| getObjectWriters | back to summary |
|---|---|
| pack-priv Map | |
| getTypedReaders | back to summary |
|---|---|
| pack-priv Map | |
| getTypedWriters | back to summary |
|---|---|
| pack-priv Map | |
| reader | back to summary |
|---|---|
| public void reader(HttpMessageReader<?> reader) Implements org. Doc from org. Add a custom
| |
| register | back to summary |
|---|---|
| public void register(Object codec) Implements org. Doc from org. Register a custom codec. This is expected to be one of the following:
| |
| registerWithDefaultConfig | back to summary |
|---|---|
| public void registerWithDefaultConfig(Object codec) Implements org. Doc from org. Variant of The properties are applied every time | |
| registerWithDefaultConfig | back to summary |
|---|---|
| public void registerWithDefaultConfig(Object codec, Consumer<CodecConfigurer. Implements org. Doc from org. Variant of The consumer is called every time
| |
| withDefaultCodecConfig | back to summary |
|---|---|
| public void withDefaultCodecConfig(Consumer<CodecConfigurer. Implements org. Doc from org. Register a callback for the
| |
| writer | back to summary |
|---|---|
| public void writer(HttpMessageWriter<?> writer) Implements org. Doc from org. Add a custom
| |