Package overit.geocallapp.wfm.cee
Class RestClientHelper
java.lang.Object
overit.geocallapp.wfm.cee.RestClientHelper
Helper for Wfm - CEE Rest integration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildResponseException(org.springframework.http.ResponseEntity<Object> response) Builds a standard DAValidateException from an error responsevoidcheckResponse(org.springframework.http.ResponseEntity response) booleanisResponseError(org.springframework.http.ResponseEntity<Object> response) Returns true if the HTTP returned status info represents an error
-
Constructor Details
-
RestClientHelper
public RestClientHelper()
-
-
Method Details
-
getCustomerApi
-
getInterventionApi
-
getSurveyApi
-
getWebResourcesApi
-
isResponseError
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
-