org.jclouds.googlecloudstorage.config
Class GoogleCloudStorageHttpApiModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.rest.config.RestModule
          extended by org.jclouds.rest.config.HttpApiModule<GoogleCloudStorageApi>
              extended by org.jclouds.googlecloudstorage.config.GoogleCloudStorageHttpApiModule
All Implemented Interfaces:
com.google.inject.Module

public class GoogleCloudStorageHttpApiModule
extends org.jclouds.rest.config.HttpApiModule<GoogleCloudStorageApi>

Configures the GoogleCloud connection.


Field Summary
 
Fields inherited from class org.jclouds.rest.config.HttpApiModule
api
 
Fields inherited from class org.jclouds.rest.config.RestModule
authException, URI_SUPPLIER_TYPE
 
Constructor Summary
GoogleCloudStorageHttpApiModule()
           
 
Method Summary
protected  void bindErrorHandlers()
           
 com.google.common.base.Supplier<String> supplyProject(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds, GoogleCloudStorageApi api, AtomicReference<org.jclouds.rest.AuthorizationException> authException, long seconds)
           
 
Methods inherited from class org.jclouds.rest.config.HttpApiModule
bindRetryHandlers, configure
 
Methods inherited from class org.jclouds.rest.config.RestModule
installLocations
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleCloudStorageHttpApiModule

public GoogleCloudStorageHttpApiModule()
Method Detail

bindErrorHandlers

protected void bindErrorHandlers()
Overrides:
bindErrorHandlers in class org.jclouds.rest.config.HttpApiModule<GoogleCloudStorageApi>

supplyProject

@Provides
@Singleton
public com.google.common.base.Supplier<String> supplyProject(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds,
                                                                                GoogleCloudStorageApi api,
                                                                                AtomicReference<org.jclouds.rest.AuthorizationException> authException,
                                                                                @Named(value="jclouds.session-interval")
                                                                                long seconds)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.