接口 ExchangeStrategies
public interface ExchangeStrategies
Provides strategies for use in anExchangeFunction.To create an instance, see the static methods
withDefaults(),builder(), andempty().- 从以下版本开始:
- 5.0
- 作者:
- Brian Clozel, Arjen Poutsma
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceExchangeStrategies.BuilderA mutable builder for anExchangeStrategies.
方法概要
所有方法 静态方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 static ExchangeStrategies.Builderbuilder()Return a builder pre-configured with default configuration to start.static ExchangeStrategies.Builderempty()Return a builder with empty configuration to start.List<HttpMessageReader<?>>messageReaders()ReturnHttpMessageReadersto read and decode the response body with.List<HttpMessageWriter<?>>messageWriters()ReturnHttpMessageWritersto write and encode the request body with.default ExchangeStrategies.Buildermutate()Return a builder to create a newExchangeStrategiesinstance replicated from the current instance.static ExchangeStrategieswithDefaults()Return 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
default ExchangeStrategies.Builder mutate()
Return a builder to create a newExchangeStrategiesinstance replicated from the current instance.- 从以下版本开始:
- 5.1.12
withDefaults
static ExchangeStrategies withDefaults()
Return anExchangeStrategiesinstance with default configuration provided byClientCodecConfigurer.
builder
static ExchangeStrategies.Builder 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
static ExchangeStrategies.Builder empty()
Return a builder with empty configuration to start.