接口 ExchangeStrategies
public interface ExchangeStrategies
Provides strategies for use in an
ExchangeFunction.
To create an instance, see the static methods withDefaults(),
builder(), and empty().
- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Arjen Poutsma
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明static 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.
-
方法详细资料
-
messageReaders
List<HttpMessageReader<?>> messageReaders()ReturnHttpMessageReadersto read and decode the response body with.- 返回:
- the message readers
-
messageWriters
List<HttpMessageWriter<?>> messageWriters()ReturnHttpMessageWritersto write and encode the request body with.- 返回:
- the message writers
-
mutate
Return a builder to create a newExchangeStrategiesinstance replicated from the current instance. -
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.
-