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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleError
(ClientHttpResponse response) Handle the error in the given response.boolean
hasError
(ClientHttpResponse response) Indicate whether the given response has any errors.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
-
Constructor Details
-
NoOpResponseErrorHandler
public NoOpResponseErrorHandler()
-
-
Method Details
-
hasError
Description copied from interface:ResponseErrorHandler
Indicate whether the given response has any errors.Implementations will typically inspect the
HttpStatus
of the response.- Specified by:
hasError
in interfaceResponseErrorHandler
- Parameters:
response
- the response to inspect- Returns:
true
if the response indicates an error;false
otherwise- Throws:
IOException
- in case of I/O errors
-
handleError
Description copied from interface:ResponseErrorHandler
Handle the error in the given response.This method is only called when
ResponseErrorHandler.hasError(ClientHttpResponse)
has returnedtrue
.- Specified by:
handleError
in interfaceResponseErrorHandler
- Parameters:
response
- the response with the error- Throws:
IOException
- in case of I/O errors
-