Package org.chenile.proxy.interceptors
Class ChenileResponseHandler
java.lang.Object
org.springframework.web.client.DefaultResponseErrorHandler
org.chenile.proxy.interceptors.ChenileResponseHandler
- All Implemented Interfaces:
ResponseErrorHandler
This communicates with SpringRestTemplate to find the errors from the returned response.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected com.fasterxml.jackson.core.type.TypeReference<?>
void
handleError
(ClientHttpResponse response) boolean
hasError
(ClientHttpResponse httpResponse) protected void
parseBody
(byte[] body, ClientHttpResponse response) Methods inherited from class org.springframework.web.client.DefaultResponseErrorHandler
getCharset, getResponseBody, handleError, hasError, hasError, initBodyConvertFunction
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.client.ResponseErrorHandler
handleError
-
Field Details
-
chenileExchange
-
objectMapper
-
-
Constructor Details
-
ChenileResponseHandler
-
-
Method Details
-
hasError
- Specified by:
hasError
in interfaceResponseErrorHandler
- Overrides:
hasError
in classDefaultResponseErrorHandler
- Throws:
IOException
-
handleError
- Specified by:
handleError
in interfaceResponseErrorHandler
- Overrides:
handleError
in classDefaultResponseErrorHandler
- Throws:
IOException
-
parseBody
- Throws:
IOException
-
getTypeReference
protected com.fasterxml.jackson.core.type.TypeReference<?> getTypeReference() -
getEndpointName
-