Interface ExchangeStrategies
public interface ExchangeStrategies
Provides strategies for use in an
ExchangeFunction.
To create an instance, see the static methods withDefaults(),
builder(), and empty().
- Since:
- 5.0
- Author:
- Brian Clozel, Arjen Poutsma
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA mutable builder for anExchangeStrategies. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExchangeStrategies.Builderbuilder()Return a builder pre-configured with default configuration to start.static ExchangeStrategies.Builderempty()Return a builder with empty configuration to start.ReturnHttpMessageReadersto read and decode the response body with.ReturnHttpMessageWritersto write and encode the request body with.default ExchangeStrategies.Buildermutate()Return a builder to create a newExchangeStrategiesinstance replicated from the current instance.static ExchangeStrategiesReturn anExchangeStrategiesinstance with default configuration provided byClientCodecConfigurer.
-
Method Details
-
messageReaders
List<HttpMessageReader<?>> messageReaders()ReturnHttpMessageReadersto read and decode the response body with.- Returns:
- the message readers
-
messageWriters
List<HttpMessageWriter<?>> messageWriters()ReturnHttpMessageWritersto write and encode the request body with.- Returns:
- the message writers
-
mutate
Return a builder to create a newExchangeStrategiesinstance replicated from the current instance.- Since:
- 5.1.12
-
withDefaults
Return anExchangeStrategiesinstance with default configuration provided byClientCodecConfigurer. -
builder
Return a builder pre-configured with default configuration to start. This is the same aswithDefaults()but returns a mutable builder for further customizations. -
empty
Return a builder with empty configuration to start.
-