public class VPDCRestClientModule extends RestClientModule<VPDCApi,VPDCAsyncApi>
| Modifier and Type | Field and Description |
|---|---|
static Map<Class<?>,Class<?>> |
DELEGATE_MAP |
asyncClientType, syncClientTypeauthException, sync2Async, URI_SUPPLIER_TYPE| Constructor and Description |
|---|
VPDCRestClientModule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindErrorHandlers()
overrides this to change the default error handlers for the http engine
ex.
|
protected void |
configure() |
protected void |
installLocations() |
protected com.google.common.base.Supplier<String> |
provideDefaultOrgId(com.google.common.base.Supplier<Set<Resource>> orgs) |
protected Set<CIMOperatingSystem> |
provideOperatingSystems(Json json,
String providerName) |
protected com.google.common.base.Supplier<Set<Resource>> |
provideOrgs(com.google.common.base.Supplier<VCloudSession> cache,
String user) |
protected com.google.common.base.Supplier<String> |
provideVCloudToken(com.google.common.base.Supplier<VCloudSession> cache) |
protected com.google.common.base.Supplier<VCloudSession> |
provideVCloudTokenCache(long seconds,
LoginApi login) |
protected com.google.common.base.Predicate<String> |
successTester(com.google.inject.Injector injector,
long completed) |
bindAsyncClient, bindClient, bindRetryHandlersdelegationMap, seedAnnotationCache, timeoutsaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingprotected void configure()
configure in class RestClientModule<VPDCApi,VPDCAsyncApi>@Provides @Singleton protected com.google.common.base.Supplier<String> provideVCloudToken(com.google.common.base.Supplier<VCloudSession> cache)
@Provides @Singleton protected com.google.common.base.Supplier<Set<Resource>> provideOrgs(com.google.common.base.Supplier<VCloudSession> cache, String user)
@Provides @Singleton protected com.google.common.base.Supplier<String> provideDefaultOrgId(com.google.common.base.Supplier<Set<Resource>> orgs)
@Provides @Singleton protected com.google.common.base.Predicate<String> successTester(com.google.inject.Injector injector, @Named(value="jclouds.vpdc.timeout.task-complete") long completed)
@Singleton @Provides protected Set<CIMOperatingSystem> provideOperatingSystems(Json json, String providerName) throws IOException
IOException@Provides @Singleton protected com.google.common.base.Supplier<VCloudSession> provideVCloudTokenCache(@Named(value="jclouds.session-interval") long seconds, LoginApi login)
protected void bindErrorHandlers()
RestClientModulebind(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<VPDCApi,VPDCAsyncApi>protected void installLocations()
installLocations in class RestModuleCopyright © 2009-2013 jclouds. All Rights Reserved.