|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.geek.gdata.client.ServiceFactory
public class ServiceFactory
Cache and auth factory
| Constructor Summary | |
|---|---|
ServiceFactory()
|
|
| Method Summary | ||
|---|---|---|
static
|
getService(T service,
cz.geek.cache.Cache<java.lang.String,CachedResponse> cache)
Decorate given Service with caching |
|
static
|
getService(T service,
cz.geek.cache.Cache<java.lang.String,CachedResponse> cache,
java.lang.String authSubToken)
Set session token and decorate with cache in one shot |
|
static
|
getService(T service,
cz.geek.cache.Cache<java.lang.String,CachedResponse> cache,
java.lang.String username,
java.lang.String password)
Set auth info and decorate with cache in one shot |
|
static
|
getService(T service,
java.lang.String authSubToken)
Set session token for given GoogleService |
|
static
|
getService(T service,
java.lang.String username,
java.lang.String password)
Set authentication info for given GoogleService |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceFactory()
| Method Detail |
|---|
public static <T extends com.google.gdata.client.GoogleService> T getService(T service,
java.lang.String username,
java.lang.String password)
throws com.google.gdata.util.AuthenticationException
GoogleService
T - extends GoogleServiceservice - ordinary serviceusername - user namepassword - user password
com.google.gdata.util.AuthenticationExceptionGoogleService.setUserCredentials(String, String)
public static <T extends com.google.gdata.client.GoogleService> T getService(T service,
java.lang.String authSubToken)
throws com.google.gdata.util.AuthenticationException
GoogleService
T - extends GoogleServiceservice - ordinary serviceauthSubToken - session token
com.google.gdata.util.AuthenticationExceptionGoogleService.setAuthSubToken(String)
public static <T extends com.google.gdata.client.Service> T getService(T service,
cz.geek.cache.Cache<java.lang.String,CachedResponse> cache)
Service with caching
T - extends Serviceservice - ordinary servicecache - desired cache
public static <T extends com.google.gdata.client.GoogleService> T getService(T service,
cz.geek.cache.Cache<java.lang.String,CachedResponse> cache,
java.lang.String username,
java.lang.String password)
throws com.google.gdata.util.AuthenticationException
T - service - ordinary servicecache - desired cacheusername - user namepassword - user password
com.google.gdata.util.AuthenticationExceptiongetService(Service, Cache),
getService(GoogleService, String, String)
public static <T extends com.google.gdata.client.GoogleService> T getService(T service,
cz.geek.cache.Cache<java.lang.String,CachedResponse> cache,
java.lang.String authSubToken)
throws com.google.gdata.util.AuthenticationException
T - service - ordinary servicecache - desired cacheauthSubToken - session token
com.google.gdata.util.AuthenticationExceptiongetService(Service, Cache),
getService(GoogleService, String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||