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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected com.fasterxml.jackson.core.type.TypeReference<?>voidhandleError(ClientHttpResponse response) booleanhasError(ClientHttpResponse httpResponse) protected voidparseBody(byte[] body, ClientHttpResponse response) Methods inherited from class org.springframework.web.client.DefaultResponseErrorHandler
getCharset, getResponseBody, handleError, hasError, hasError, initBodyConvertFunctionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.client.ResponseErrorHandler
handleError
-
Field Details
-
chenileExchange
-
objectMapper
-
-
Constructor Details
-
ChenileResponseHandler
-
-
Method Details
-
hasError
- Specified by:
hasErrorin interfaceResponseErrorHandler- Overrides:
hasErrorin classDefaultResponseErrorHandler- Throws:
IOException
-
handleError
- Specified by:
handleErrorin interfaceResponseErrorHandler- Overrides:
handleErrorin classDefaultResponseErrorHandler- Throws:
IOException
-
parseBody
- Throws:
IOException
-
getTypeReference
protected com.fasterxml.jackson.core.type.TypeReference<?> getTypeReference() -
getEndpointName
-