org.mule.modules.google.api.client
Class AbstractGoogleClientFactory<T extends com.google.api.client.googleapis.services.GoogleClient>

java.lang.Object
  extended by org.mule.modules.google.api.client.AbstractGoogleClientFactory<T>
Type Parameters:
T -
All Implemented Interfaces:
GoogleClientFactory<T>

public abstract class AbstractGoogleClientFactory<T extends com.google.api.client.googleapis.services.GoogleClient>
extends Object
implements GoogleClientFactory<T>

Author:
mariano.gonzalez@mulesoft.com

Constructor Summary
AbstractGoogleClientFactory()
           
 
Method Summary
 T getClient(String accessToken, String applicationName)
           
protected abstract  T newClient(com.google.api.client.auth.oauth2.Credential credential, String accessToken, String applicationName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGoogleClientFactory

public AbstractGoogleClientFactory()
Method Detail

getClient

public final T getClient(String accessToken,
                         String applicationName)
Specified by:
getClient in interface GoogleClientFactory<T extends com.google.api.client.googleapis.services.GoogleClient>

newClient

protected abstract T newClient(com.google.api.client.auth.oauth2.Credential credential,
                               String accessToken,
                               String applicationName)


Copyright © 2012. All Rights Reserved.