com.google.api.client.googleapis.auth.clientlogin
Class ClientLogin.Response

java.lang.Object
  extended by com.google.api.client.googleapis.auth.clientlogin.ClientLogin.Response
All Implemented Interfaces:
HttpExecuteInterceptor, HttpRequestInitializer
Enclosing class:
ClientLogin

public static final class ClientLogin.Response
extends Object
implements HttpExecuteInterceptor, HttpRequestInitializer

Key/value data to parse a success response.

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.


Field Summary
 String auth
          Authentication token.
 
Constructor Summary
ClientLogin.Response()
           
 
Method Summary
 String getAuthorizationHeaderValue()
          Returns the authorization header value to use based on the authentication token.
 void initialize(HttpRequest request)
           
 void intercept(HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

auth

public String auth
Authentication token.

Constructor Detail

ClientLogin.Response

public ClientLogin.Response()
Method Detail

getAuthorizationHeaderValue

public String getAuthorizationHeaderValue()
Returns the authorization header value to use based on the authentication token.


initialize

public void initialize(HttpRequest request)
Specified by:
initialize in interface HttpRequestInitializer

intercept

public void intercept(HttpRequest request)
Specified by:
intercept in interface HttpExecuteInterceptor


Copyright © 2010-2012 Google. All Rights Reserved.