public class RetryHttpInitializer extends Object implements com.google.api.client.http.HttpRequestInitializer
| Constructor and Description |
|---|
RetryHttpInitializer(com.google.api.client.auth.oauth2.Credential credential,
String defaultUserAgent) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(com.google.api.client.http.HttpRequest request) |
public RetryHttpInitializer(com.google.api.client.auth.oauth2.Credential credential,
String defaultUserAgent)
credential - A credential which will be set as an interceptor on HttpRequests and
as the delegate for a CredentialOrBackoffResponsehandler.defaultUserAgent - A String to set as the user-agent when initializing an HttpRequest
if the HttpRequest doesn't already have a user-agent header.Copyright © 2016. All rights reserved.