Class GesturesAPITemplateClient

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

@Qualifier("template") public class GesturesAPITemplateClient extends Object implements GesturesAPI
This class demonstrates a synchronous/blocking client using RestTemplate -- which is the only mode RestTemplate can operate in. Both the client and server-side are implemented synchronously -- so we are able to naively leverage a common interface.
  • Field Details

    • baseUrl

      private final URI baseUrl
    • restTemplate

      private final org.springframework.web.client.RestTemplate restTemplate
  • Constructor Details

    • GesturesAPITemplateClient

      public GesturesAPITemplateClient(org.springframework.web.client.RestTemplate restTemplate, ServerConfig serverConfig)
  • Method Details