org.dasein.cloud.google.storage
Class StorageMethod

java.lang.Object
  extended by org.dasein.cloud.google.storage.StorageMethod

public class StorageMethod
extends Object

Author:
George Reese @ enStratus

Nested Class Summary
static class StorageMethod.StorageResponse
           
 
Constructor Summary
StorageMethod(GoogleAppEngine provider, StorageAction action)
           
StorageMethod(GoogleAppEngine provider, StorageAction action, Map<String,String> parameters, Map<String,String> headers)
           
StorageMethod(GoogleAppEngine provider, StorageAction action, Map<String,String> parameters, Map<String,String> headers, String contentType, File uploadFile)
           
StorageMethod(GoogleAppEngine provider, StorageAction action, Map<String,String> parameters, Map<String,String> headers, String contentType, String body)
           
 
Method Summary
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
 

Constructor Detail

StorageMethod

public StorageMethod(GoogleAppEngine provider,
                     StorageAction action)

StorageMethod

public StorageMethod(GoogleAppEngine provider,
                     StorageAction action,
                     Map<String,String> parameters,
                     Map<String,String> headers)

StorageMethod

public StorageMethod(GoogleAppEngine provider,
                     StorageAction action,
                     Map<String,String> parameters,
                     Map<String,String> headers,
                     String contentType,
                     String body)

StorageMethod

public StorageMethod(GoogleAppEngine provider,
                     StorageAction action,
                     Map<String,String> parameters,
                     Map<String,String> headers,
                     String contentType,
                     File uploadFile)
Method Detail

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 © 2011 enStratus Networks LLC. All Rights Reserved.