Class RestClientHelper

java.lang.Object
overit.geocallapp.wfm.cee.RestClientHelper

public class RestClientHelper extends Object
Helper for Wfm - CEE Rest integration
  • Constructor Details

    • RestClientHelper

      public RestClientHelper()
  • Method Details

    • getCustomerApi

      public CustomerApi getCustomerApi()
    • getInterventionApi

      public InterventionApi getInterventionApi()
    • getSurveyApi

      public SurveyApi getSurveyApi()
    • getWebResourcesApi

      public WebResourcesApi getWebResourcesApi()
    • isResponseError

      public boolean isResponseError(org.springframework.http.ResponseEntity<Object> response)
      Returns true if the HTTP returned status info represents an error
      Parameters:
      response -
      Returns:
    • buildResponseException

      public DAValidateException buildResponseException(org.springframework.http.ResponseEntity<Object> response)
      Builds a standard DAValidateException from an error response
      Parameters:
      response -
      Returns:
    • checkResponse

      public void checkResponse(org.springframework.http.ResponseEntity response) throws DAValidateException
      Throws:
      DAValidateException