Package io.rocketbase.commons.resource
Class BasicResponseErrorHandler
java.lang.Object
org.springframework.web.client.DefaultResponseErrorHandler
io.rocketbase.commons.resource.BasicResponseErrorHandler
- All Implemented Interfaces:
org.springframework.web.client.ResponseErrorHandler
public class BasicResponseErrorHandler
extends org.springframework.web.client.DefaultResponseErrorHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ObjectMappervoidhandleError(org.springframework.http.client.ClientHttpResponse response) Methods inherited from class org.springframework.web.client.DefaultResponseErrorHandler
getCharset, getResponseBody, handleError, hasError, 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
-
Constructor Details
-
BasicResponseErrorHandler
public BasicResponseErrorHandler()
-
-
Method Details
-
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
handleError
public void handleError(org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
handleErrorin interfaceorg.springframework.web.client.ResponseErrorHandler- Overrides:
handleErrorin classorg.springframework.web.client.DefaultResponseErrorHandler- Throws:
IOException
-