Package org.springframework.web.client
Class NoOpResponseErrorHandler
java.lang.Object
org.springframework.web.client.NoOpResponseErrorHandler
- All Implemented Interfaces:
- ResponseErrorHandler
A basic, no operation 
ResponseErrorHandler implementation suitable
 for ignoring any error.- Since:
- 6.1.7
- Author:
- Stephane Nicoll
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidhandleError(ClientHttpResponse response) Handle the error in the given response.booleanhasError(ClientHttpResponse response) Indicate whether the given response has any errors.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.client.ResponseErrorHandlerhandleError
- 
Constructor Details- 
NoOpResponseErrorHandlerpublic NoOpResponseErrorHandler()
 
- 
- 
Method Details- 
hasErrorDescription copied from interface:ResponseErrorHandlerIndicate whether the given response has any errors.Implementations will typically inspect the HttpStatusof the response.- Specified by:
- hasErrorin interface- ResponseErrorHandler
- Parameters:
- response- the response to inspect
- Returns:
- trueif the response indicates an error;- falseotherwise
- Throws:
- IOException- in case of I/O errors
 
- 
handleErrorDescription copied from interface:ResponseErrorHandlerHandle the error in the given response.This method is only called when ResponseErrorHandler.hasError(ClientHttpResponse)has returnedtrue.- Specified by:
- handleErrorin interface- ResponseErrorHandler
- Parameters:
- response- the response with the error
- Throws:
- IOException- in case of I/O errors
 
 
-