java.lang.Object
info.ejava.assignments.api.houserenters.client.renters.RentersAPIClient
All Implemented Interfaces:
RentersAPI, RentersHttpIface

public class RentersAPIClient extends Object implements RentersAPI
This class has been modified to leverage Spring HTTP Interface API, while retaining backward-compatibility with legacy test infrastructure. The original intent of this class was to encapsulate the details of making each HTTP call. It still does that, but with the use of the annotated interface and dynamic proxy. If something breaks or something custom must take place, we retain the ability to put that in place here. This is not an all-or-nothing choice.
  • Field Details

    • baseUrl

      private final URI baseUrl
    • rentersHttpAPI

      protected final RentersHttpIface rentersHttpAPI
    • restClient

      private final org.springframework.web.client.RestClient restClient
  • Constructor Details

    • RentersAPIClient

      public RentersAPIClient(org.springframework.web.client.RestTemplate restTemplate, ServerConfig serverConfig)
    • RentersAPIClient

      public RentersAPIClient(org.springframework.web.client.RestTemplate restTemplate, URI baseUrl)
    • RentersAPIClient

      public RentersAPIClient(org.springframework.web.client.RestTemplate restTemplate, URI baseUrl, Class<T> ifaceType)
  • Method Details