public static final class ClientLogin.Response
extends java.lang.Object
implements com.google.api.client.http.HttpExecuteInterceptor, com.google.api.client.http.HttpRequestInitializer
Sample usage, taking advantage that this class implements HttpRequestInitializer:
public static HttpRequestFactory createRequestFactory(
HttpTransport transport, Response response) {
return transport.createRequestFactory(response);
}
If you have a custom request initializer, take a look at the sample usage for
HttpExecuteInterceptor, which this class also implements.
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
auth
Authentication token.
|
| Constructor and Description |
|---|
Response() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthorizationHeaderValue()
Returns the authorization header value to use based on the authentication token.
|
void |
initialize(com.google.api.client.http.HttpRequest request) |
void |
intercept(com.google.api.client.http.HttpRequest request) |
public java.lang.String getAuthorizationHeaderValue()
public void initialize(com.google.api.client.http.HttpRequest request)
initialize in interface com.google.api.client.http.HttpRequestInitializerpublic void intercept(com.google.api.client.http.HttpRequest request)
intercept in interface com.google.api.client.http.HttpExecuteInterceptorCopyright © 2010-2018 Google. All Rights Reserved.