Class ExchangeFunctions

java.lang.Object
org.springframework.web.reactive.function.client.ExchangeFunctions

public abstract class ExchangeFunctions extends Object
Static factory methods to create an ExchangeFunction.
Since:
5.0
Author:
Arjen Poutsma, Rossen Stoyanchev
  • Constructor Details

    • ExchangeFunctions

      public ExchangeFunctions()
  • Method Details

    • create

      public static ExchangeFunction create(org.springframework.http.client.reactive.ClientHttpConnector connector)
      Create an ExchangeFunction with the given ClientHttpConnector. This is the same as calling create(ClientHttpConnector, ExchangeStrategies) and passing ExchangeStrategies.withDefaults().
      Parameters:
      connector - the connector to use for connecting to servers
      Returns:
      the created ExchangeFunction
    • create

      public static ExchangeFunction create(org.springframework.http.client.reactive.ClientHttpConnector connector, ExchangeStrategies strategies)
      Create an ExchangeFunction with the given ClientHttpConnector and ExchangeStrategies.
      Parameters:
      connector - the connector to use for connecting to servers
      strategies - the ExchangeStrategies to use
      Returns:
      the created ExchangeFunction