Class ExchangeFunctions
java.lang.Object
org.springframework.web.reactive.function.client.ExchangeFunctions
Static factory methods to create an
ExchangeFunction
.- Since:
- 5.0
- Author:
- Arjen Poutsma, Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExchangeFunction
create
(ClientHttpConnector connector) Create anExchangeFunction
with the givenClientHttpConnector
.static ExchangeFunction
create
(ClientHttpConnector connector, ExchangeStrategies strategies) Create anExchangeFunction
with the givenClientHttpConnector
andExchangeStrategies
.
-
Constructor Details
-
ExchangeFunctions
public ExchangeFunctions()
-
-
Method Details
-
create
Create anExchangeFunction
with the givenClientHttpConnector
. This is the same as callingcreate(ClientHttpConnector, ExchangeStrategies)
and passingExchangeStrategies.withDefaults()
.- Parameters:
connector
- the connector to use for connecting to servers- Returns:
- the created
ExchangeFunction
-
create
Create anExchangeFunction
with the givenClientHttpConnector
andExchangeStrategies
.- Parameters:
connector
- the connector to use for connecting to serversstrategies
- theExchangeStrategies
to use- Returns:
- the created
ExchangeFunction
-