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
Modifier and TypeInterfaceDescriptionstatic interface
A mutable builder for anExchangeStrategies
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExchangeStrategies.Builder
builder()
Return a builder pre-configured with default configuration to start.static ExchangeStrategies.Builder
empty()
Return a builder with empty configuration to start.ReturnHttpMessageReaders
to read and decode the response body with.ReturnHttpMessageWriters
to write and encode the request body with.default ExchangeStrategies.Builder
mutate()
Return a builder to create a newExchangeStrategies
instance replicated from the current instance.static ExchangeStrategies
Return anExchangeStrategies
instance with default configuration provided byClientCodecConfigurer
.
-
Method Details
-
messageReaders
List<HttpMessageReader<?>> messageReaders()ReturnHttpMessageReaders
to read and decode the response body with.- Returns:
- the message readers
-
messageWriters
List<HttpMessageWriter<?>> messageWriters()ReturnHttpMessageWriters
to write and encode the request body with.- Returns:
- the message writers
-
mutate
Return a builder to create a newExchangeStrategies
instance replicated from the current instance.- Since:
- 5.1.12
-
withDefaults
Return anExchangeStrategies
instance 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.
-