org.jclouds.s3
Class S3ApiMetadata

java.lang.Object
  extended by org.jclouds.apis.internal.BaseApiMetadata
      extended by org.jclouds.rest.internal.BaseRestApiMetadata
          extended by org.jclouds.s3.S3ApiMetadata
All Implemented Interfaces:
Serializable, ApiMetadata, RestApiMetadata
Direct Known Subclasses:
AWSS3ApiMetadata, WalrusApiMetadata

public class S3ApiMetadata
extends BaseRestApiMetadata

Implementation of ApiMetadata for Amazon's S3 api.

note

This class allows overriding of types S(client) and A (asyncClient), so that children can add additional methods not declared here, such as new features from AWS.

As this is a popular api, we also allow overrides for type C (context). This allows subtypes to add in new feature groups or extensions, not present in the base api. For example, you could make a subtype for context, that exposes admin operations.

Author:
Adrian Cole
See Also:
Serialized Form

Nested Class Summary
static class S3ApiMetadata.Builder
           
 
Field Summary
static com.google.common.reflect.TypeToken<RestContext<? extends S3Client,? extends S3AsyncClient>> CONTEXT_TOKEN
           
 
Fields inherited from class org.jclouds.rest.internal.BaseRestApiMetadata
api, asyncApi
 
Fields inherited from class org.jclouds.apis.internal.BaseApiMetadata
buildVersion, context, credentialName, defaultCredential, defaultEndpoint, defaultIdentity, defaultModules, defaultProperties, documentation, endpointName, id, identityName, name, version, views
 
Constructor Summary
  S3ApiMetadata()
           
protected S3ApiMetadata(S3ApiMetadata.Builder builder)
           
 
Method Summary
static Properties defaultProperties()
           
 S3ApiMetadata.Builder toBuilder()
           
 
Methods inherited from class org.jclouds.rest.internal.BaseRestApiMetadata
contextToken, getApi, getAsyncApi, string
 
Methods inherited from class org.jclouds.apis.internal.BaseApiMetadata
equals, getBuildVersion, getContext, getCredentialName, getDefaultCredential, getDefaultEndpoint, getDefaultIdentity, getDefaultModules, getDefaultProperties, getDocumentation, getEndpointName, getId, getIdentityName, getName, getVersion, getViews, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.apis.ApiMetadata
getBuildVersion, getContext, getCredentialName, getDefaultCredential, getDefaultEndpoint, getDefaultIdentity, getDefaultModules, getDefaultProperties, getDocumentation, getEndpointName, getId, getIdentityName, getName, getVersion, getViews
 

Field Detail

CONTEXT_TOKEN

public static final com.google.common.reflect.TypeToken<RestContext<? extends S3Client,? extends S3AsyncClient>> CONTEXT_TOKEN
Constructor Detail

S3ApiMetadata

public S3ApiMetadata()

S3ApiMetadata

protected S3ApiMetadata(S3ApiMetadata.Builder builder)
Method Detail

toBuilder

public S3ApiMetadata.Builder toBuilder()
Specified by:
toBuilder in interface ApiMetadata
Overrides:
toBuilder in class BaseRestApiMetadata
See Also:
ApiMetadata.Builder

defaultProperties

public static Properties defaultProperties()


Copyright © 2009-2012 jclouds. All Rights Reserved.