java.lang.Object
es.kukenan.smartfi.microservice.transfer.service.backoffice.AbstractEndpointClient
es.kukenan.smartfi.microservice.transfer.service.backoffice.apis.endpoints.AbstractInternalEndpointClient
Direct Known Subclasses:
GenericProductsInternalEndpoint

public class AbstractInternalEndpointClient extends AbstractEndpointClient
Base class with core funcionality for any endpoint implementation.
  • Field Details

  • Constructor Details

    • AbstractInternalEndpointClient

      public AbstractInternalEndpointClient(String endpointBasePath)
      Base constructor.
      Parameters:
      endpointBasePath - the base path of this endpoint.
  • Method Details

    • extractResponseData

      protected <T> T extractResponseData(org.springframework.http.ResponseEntity<T> responseEntity)
      Extract the response data from the given ResponseEntity.
      Type Parameters:
      T - CoreResponse type.
      Parameters:
      responseEntity - ResponseEntity.
      Returns:
      core response data.