public class ServiceFactory extends Object
| Constructor and Description |
|---|
ServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.google.gdata.client.Service> |
getService(T service,
cz.geek.cache.Cache<String,CachedResponse> cache)
Decorate given
Service with caching |
static <T extends com.google.gdata.client.GoogleService> |
getService(T service,
cz.geek.cache.Cache<String,CachedResponse> cache,
String authSubToken)
Set session token and decorate with cache in one shot
|
static <T extends com.google.gdata.client.GoogleService> |
getService(T service,
cz.geek.cache.Cache<String,CachedResponse> cache,
String username,
String password)
Set auth info and decorate with cache in one shot
|
static <T extends com.google.gdata.client.GoogleService> |
getService(T service,
String authSubToken)
Set session token for given
GoogleService |
static <T extends com.google.gdata.client.GoogleService> |
getService(T service,
String username,
String password)
Set authentication info for given
GoogleService |
public static <T extends com.google.gdata.client.GoogleService> T getService(T service,
String username,
String password)
throws com.google.gdata.util.AuthenticationException
GoogleServiceT - extends GoogleServiceservice - ordinary serviceusername - user namepassword - user passwordcom.google.gdata.util.AuthenticationExceptionGoogleService.setUserCredentials(String, String)public static <T extends com.google.gdata.client.GoogleService> T getService(T service,
String authSubToken)
throws com.google.gdata.util.AuthenticationException
GoogleServiceT - extends GoogleServiceservice - ordinary serviceauthSubToken - session tokencom.google.gdata.util.AuthenticationExceptionGoogleService.setAuthSubToken(String)public static <T extends com.google.gdata.client.Service> T getService(T service,
cz.geek.cache.Cache<String,CachedResponse> cache)
Service with cachingT - extends Serviceservice - ordinary servicecache - desired cachepublic static <T extends com.google.gdata.client.GoogleService> T getService(T service,
cz.geek.cache.Cache<String,CachedResponse> cache,
String username,
String password)
throws com.google.gdata.util.AuthenticationException
T - service - ordinary servicecache - desired cacheusername - user namepassword - user passwordcom.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<String,CachedResponse> cache,
String authSubToken)
throws com.google.gdata.util.AuthenticationException
T - service - ordinary servicecache - desired cacheauthSubToken - session tokencom.google.gdata.util.AuthenticationExceptiongetService(Service, Cache),
getService(GoogleService, String, String)Copyright © 2013. All Rights Reserved.