Class ArmeriaHttpExchangeAdapter

java.lang.Object
org.springframework.web.service.invoker.AbstractReactorHttpExchangeAdapter
com.linecorp.armeria.spring.client.ArmeriaHttpExchangeAdapter
All Implemented Interfaces:
HttpClientAdapter, HttpExchangeAdapter, ReactorHttpExchangeAdapter

@UnstableApi public final class ArmeriaHttpExchangeAdapter extends AbstractReactorHttpExchangeAdapter
A ReactorHttpExchangeAdapter implementation for the Armeria WebClient. This class is used to create Spring HTTP Interface on top of Armeria WebClient.

Example usage:


 import com.linecorp.armeria.client.WebClient;
 import org.springframework.web.service.invoker.HttpServiceProxyFactory;

 WebClient webClient = ...;
 ArmeriaHttpExchangeAdapter adapter =
   ArmeriaHttpExchangeAdapter.of(webClient);
 MyService service =
   HttpServiceProxyFactory.builderFor(adapter)
                          .build()
                          .createClient(MyService.class);