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 |
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)
getClient
@Nonnull
protected org.apache.http.client.HttpClient getClient(String url,
boolean multipart)
throws org.dasein.cloud.InternalException
- Throws:
org.dasein.cloud.InternalException
Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.