T - return type of ResponseHandler.handleResponse(HttpResponse).public abstract class ValidatingResponseHandler<T> extends Object implements org.apache.http.client.ResponseHandler<T>
| Constructor and Description |
|---|
ValidatingResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
validateResponse(org.apache.http.HttpResponse response)
Checks the response for a statuscode between
HttpStatus.SC_OK and HttpStatus.SC_MULTIPLE_CHOICES
and throws an SardineException otherwise. |
protected void validateResponse(org.apache.http.HttpResponse response)
throws SardineException
HttpStatus.SC_OK and HttpStatus.SC_MULTIPLE_CHOICES
and throws an SardineException otherwise.response - to checkSardineException - when the status code is not acceptable.Copyright © 2019. All rights reserved.