Class GesturesAPISyncWebClient

java.lang.Object
info.ejava.examples.svc.httpapi.gestures.client.GesturesAPISyncWebClient
All Implemented Interfaces:
GesturesAPI

@Qualifier("webclient") public class GesturesAPISyncWebClient extends Object implements GesturesAPI
This class demonstrates an implementation of the Gestures client using WebClient in a purely *synchronous* / *blocking* manner. The primary difference between this and the RestTemplate version is the specific types of exceptions thrown. Even though they are logically equivalent (i.e., NotFound, BadRequest, etc.), they are from two different class hierarchies.
  • Field Details

    • baseUrl

      private final URI baseUrl
    • webClient

      private final org.springframework.web.reactive.function.client.WebClient webClient
  • Constructor Details

    • GesturesAPISyncWebClient

      public GesturesAPISyncWebClient(org.springframework.web.reactive.function.client.WebClient webClient, ServerConfig serverConfig)
  • Method Details