|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResponseErrorHandler
Strategy interface used by the RestTemplate
to determine whether a particular response has an error or not.
Method Summary | |
---|---|
void |
handleError(ClientHttpResponse response)
Handles the error in the given response. |
boolean |
hasError(ClientHttpResponse response)
Indicates whether the given response has any errors. |
Method Detail |
---|
boolean hasError(ClientHttpResponse response) throws IOException
HttpStatus
of the response.
response
- the response to inspect
true
if the response has an error; false
otherwise
IOException
- in case of I/O errorsvoid handleError(ClientHttpResponse response) throws IOException
hasError(ClientHttpResponse)
has returned true
.
response
- the response with the error
IOException
- in case of I/O errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |