Package | Description |
---|---|
com.google.api.client.http |
Subset of HTTP 1.1 needed from the specification in RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
|
Modifier and Type | Field and Description |
---|---|
static HttpBackOffUnsuccessfulResponseHandler.BackOffRequired |
HttpBackOffUnsuccessfulResponseHandler.BackOffRequired.ALWAYS
Back-off required implementation which returns
true to every isRequired(HttpResponse) call. |
static HttpBackOffUnsuccessfulResponseHandler.BackOffRequired |
HttpBackOffUnsuccessfulResponseHandler.BackOffRequired.ON_SERVER_ERROR
Back-off required implementation which its
isRequired(HttpResponse) returns true if a server error occurred (5xx). |
Modifier and Type | Method and Description |
---|---|
HttpBackOffUnsuccessfulResponseHandler.BackOffRequired |
HttpBackOffUnsuccessfulResponseHandler.getBackOffRequired()
Returns the
HttpBackOffUnsuccessfulResponseHandler.BackOffRequired instance which determines if back-off is required based on
an abnormal HTTP response. |
Modifier and Type | Method and Description |
---|---|
HttpBackOffUnsuccessfulResponseHandler |
HttpBackOffUnsuccessfulResponseHandler.setBackOffRequired(HttpBackOffUnsuccessfulResponseHandler.BackOffRequired backOffRequired)
Sets the
HttpBackOffUnsuccessfulResponseHandler.BackOffRequired instance which determines if back-off is required based on an
abnormal HTTP response. |
Copyright © 2011–2019 Google. All rights reserved.