org.jclouds.aws.s3.config
Class AWSS3RestClientModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.rest.config.RestClientModule<S,A>
          extended by org.jclouds.aws.config.AWSRestClientModule<S,A>
              extended by org.jclouds.s3.config.S3RestClientModule<AWSS3Client,AWSS3AsyncClient>
                  extended by org.jclouds.aws.s3.config.AWSS3RestClientModule
All Implemented Interfaces:
com.google.inject.Module

public class AWSS3RestClientModule
extends S3RestClientModule<AWSS3Client,AWSS3AsyncClient>

Configures the S3 connection.

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.rest.config.RestClientModule
asyncClientType, delegates, syncClientType
 
Constructor Summary
AWSS3RestClientModule()
           
 
Method Summary
protected  void configure()
           
protected  String defaultRegionForBucket(String defaultRegion)
           
protected  URI provideBucketURI(String endpoint)
           
 
Methods inherited from class org.jclouds.s3.config.S3RestClientModule
bindErrorHandlers, bucketToRegion, create, provideRequestSigner, provideTimeStamp, provideTimeStampCache
 
Methods inherited from class org.jclouds.aws.config.AWSRestClientModule
bindRegionsToProvider, bindRegionsToProvider, bindRetryHandlers, getDefaultRegion, provideRegions
 
Methods inherited from class org.jclouds.rest.config.RestClientModule
bindAsyncClient, bindClient
 
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

AWSS3RestClientModule

public AWSS3RestClientModule()
Method Detail

provideBucketURI

@Provides
@Singleton
protected URI provideBucketURI(@Named(value="jclouds.region.us-standard.endpoint")
                                                  String endpoint)

defaultRegionForBucket

protected String defaultRegionForBucket(String defaultRegion)
Overrides:
defaultRegionForBucket in class S3RestClientModule<AWSS3Client,AWSS3AsyncClient>

configure

protected void configure()
Overrides:
configure in class S3RestClientModule<AWSS3Client,AWSS3AsyncClient>


Copyright © 2009-2011 jclouds. All Rights Reserved.