org.dasein.cloud.aws.storage
Class S3Method
java.lang.Object
org.dasein.cloud.aws.storage.S3Method
public class S3Method
- extends Object
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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.