org.springframework.web.client.ResponseErrorHandler |
Known Indirect Subclasses
|
Class Overview
Strategy interface used by the RestTemplate
to determine whether a particular response has an error or not.
Public Methods
public
abstract
void
handleError
(ClientHttpResponse response)
Parameters
response
| the response with the error |
public
abstract
boolean
hasError
(ClientHttpResponse response)
Indicates whether the given response has any errors.
Implementations will typically inspect the HttpStatus
of the response.
Parameters
response
| the response to inspect |
Returns
true
if the response has an error; false
otherwise