org.dasein.cloud.aws.storage
Class S3Method

java.lang.Object
  extended by org.dasein.cloud.aws.storage.S3Method

public class S3Method
extends Object


Nested Class Summary
static class S3Method.S3Response
           
 
Field Summary
static String CF_VERSION
           
static String CLOUD_FRONT_URL
           
static String S3_PREFIX
           
 
Constructor Summary
S3Method(AWSCloud provider, S3Action action)
           
S3Method(AWSCloud provider, S3Action action, Map<String,String> parameters, Map<String,String> headers)
           
S3Method(AWSCloud provider, S3Action action, Map<String,String> parameters, Map<String,String> headers, String contentType, File uploadFile)
           
S3Method(AWSCloud provider, S3Action action, Map<String,String> parameters, Map<String,String> headers, String contentType, String body)
           
 
Method Summary
static org.dasein.cloud.identity.ServiceAction[] asS3ServiceAction(String action)
           
static byte[] computeMD5Hash(InputStream is)
           
static byte[] computeMD5Hash(String str)
           
static String getChecksum(File file)
           
static String toBase64(byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOUD_FRONT_URL

public static final String CLOUD_FRONT_URL
See Also:
Constant Field Values

CF_VERSION

public static final String CF_VERSION
See Also:
Constant Field Values

S3_PREFIX

public static final String S3_PREFIX
See Also:
Constant Field Values
Constructor Detail

S3Method

public S3Method(AWSCloud provider,
                S3Action action)

S3Method

public S3Method(AWSCloud provider,
                S3Action action,
                Map<String,String> parameters,
                Map<String,String> headers)

S3Method

public S3Method(AWSCloud provider,
                S3Action action,
                Map<String,String> parameters,
                Map<String,String> headers,
                String contentType,
                String body)

S3Method

public S3Method(AWSCloud provider,
                S3Action action,
                Map<String,String> parameters,
                Map<String,String> headers,
                String contentType,
                File uploadFile)
Method Detail

asS3ServiceAction

@Nonnull
public static org.dasein.cloud.identity.ServiceAction[] asS3ServiceAction(@Nonnull
                                                                                  String action)

computeMD5Hash

public static byte[] computeMD5Hash(String str)
                             throws NoSuchAlgorithmException,
                                    IOException
Throws:
NoSuchAlgorithmException
IOException

computeMD5Hash

public static byte[] computeMD5Hash(InputStream is)
                             throws NoSuchAlgorithmException,
                                    IOException
Throws:
NoSuchAlgorithmException
IOException

getChecksum

public static String getChecksum(File file)
                          throws NoSuchAlgorithmException,
                                 FileNotFoundException,
                                 IOException
Throws:
NoSuchAlgorithmException
FileNotFoundException
IOException

toBase64

public static String toBase64(byte[] data)


Copyright © 2012 enStratus Networks LLC. All Rights Reserved.