public class VCloudDirectorRestClientModule extends RestClientModule<VCloudDirectorApi,VCloudDirectorAsyncApi>
Modifier and Type | Field and Description |
---|---|
static Map<Class<?>,Class<?>> |
ADMIN_DELEGATE_MAP |
static Map<Class<?>,Class<?>> |
USER_DELEGATE_MAP |
asyncClientType, syncClientType
authException, sync2Async, URI_SUPPLIER_TYPE
Constructor and Description |
---|
VCloudDirectorRestClientModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindAsyncClient() |
protected void |
bindClient() |
protected void |
bindErrorHandlers()
overrides this to change the default error handlers for the http engine
ex.
|
protected void |
configure() |
protected com.google.common.base.Supplier<Session> |
currentSession(com.google.common.base.Supplier<SessionWithToken> in) |
protected com.google.common.base.Supplier<URI> |
loginUrl(com.google.common.base.Supplier<URI> provider) |
protected com.google.common.base.Function<Credentials,SessionWithToken> |
makeSureFilterRetriesOnTimeout(LoginUserInOrgWithPassword loginWithPasswordCredentials) |
protected com.google.common.base.Function<String,Entity> |
makeSureResolveEntityRetriesOnTimeout(ResolveEntity resolveEntity) |
com.google.common.cache.LoadingCache<Credentials,SessionWithToken> |
provideSessionWithTokenCache(com.google.common.base.Function<Credentials,SessionWithToken> getSessionWithToken,
int seconds) |
protected com.google.common.base.Supplier<SessionWithToken> |
provideSessionWithTokenSupplier(com.google.common.cache.LoadingCache<Credentials,SessionWithToken> cache,
com.google.common.base.Supplier<Credentials> creds) |
com.google.common.cache.LoadingCache<String,Entity> |
resolveEntityCache(com.google.common.base.Function<String,Entity> getEntity,
int seconds) |
protected com.google.common.base.Supplier<String> |
sessionToken(com.google.common.base.Supplier<SessionWithToken> in) |
bindRetryHandlers
delegationMap, installLocations, seedAnnotationCache, timeouts
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected void bindAsyncClient()
bindAsyncClient
in class RestClientModule<VCloudDirectorApi,VCloudDirectorAsyncApi>
protected void bindClient()
bindClient
in class RestClientModule<VCloudDirectorApi,VCloudDirectorAsyncApi>
protected void configure()
configure
in class RestClientModule<VCloudDirectorApi,VCloudDirectorAsyncApi>
protected void bindErrorHandlers()
RestClientModule
bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(ParseAWSErrorFromXmlContent.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(ParseAWSErrorFromXmlContent.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(ParseAWSErrorFromXmlContent.class);
bindErrorHandlers
in class RestClientModule<VCloudDirectorApi,VCloudDirectorAsyncApi>
@Provides protected com.google.common.base.Supplier<URI> loginUrl(com.google.common.base.Supplier<URI> provider)
@Provides protected com.google.common.base.Supplier<Session> currentSession(com.google.common.base.Supplier<SessionWithToken> in)
@Provides protected com.google.common.base.Supplier<String> sessionToken(com.google.common.base.Supplier<SessionWithToken> in)
@Provides protected com.google.common.base.Function<String,Entity> makeSureResolveEntityRetriesOnTimeout(ResolveEntity resolveEntity)
@Provides public com.google.common.cache.LoadingCache<String,Entity> resolveEntityCache(com.google.common.base.Function<String,Entity> getEntity, int seconds)
@Provides protected com.google.common.base.Function<Credentials,SessionWithToken> makeSureFilterRetriesOnTimeout(LoginUserInOrgWithPassword loginWithPasswordCredentials)
@Provides public com.google.common.cache.LoadingCache<Credentials,SessionWithToken> provideSessionWithTokenCache(com.google.common.base.Function<Credentials,SessionWithToken> getSessionWithToken, int seconds)
@Provides protected com.google.common.base.Supplier<SessionWithToken> provideSessionWithTokenSupplier(com.google.common.cache.LoadingCache<Credentials,SessionWithToken> cache, com.google.common.base.Supplier<Credentials> creds)
Copyright © 2009-2013 jclouds. All Rights Reserved.