|
synchronized
void
|
connect(String accessKey, String secretKey)
Login to Amazon S3
|
|
String
|
connectionId()
|
|
String
|
copyObject(String sourceBucketName, String sourceKey, String sourceVersionId, String destinationBucketName, String destinationKey, AccessControlList destinationAcl, StorageClass destinationStorageClass, Map<String, String> destinationUserMetadata, Date modifiedSince, Date unmodifiedSince)
Copies a source object to a new destination; to copy an object, the caller's
account must have read access to the source object and write access to the
destination bucket.
|
|
Bucket
|
createBucket(String bucketName, Region region, AccessControlList acl)
Creates a new bucket; connector must not be configured as anonymous for this
operation to succeed.
|
|
String
|
createObject(String bucketName, String key, Object content, Long contentLength, String contentMd5, String contentType, String contentDisposition, AccessControlList acl, StorageClass storageClass, Map<String, String> userMetadata)
Uploads an object to S3.
|
|
URI
|
createObjectPresignedUri(String bucketName, String key, String versionId, Date expiration, String method)
Returns a pre-signed URL for accessing an Amazon S3 object.
|
|
URI
|
createObjectUri(String bucketName, String key, boolean useDefaultServer, boolean secure)
Creates an http URI for the given object id.
|
|
void
|
deleteBucket(String bucketName, boolean force)
Deletes the specified bucket.
|
|
void
|
deleteBucketPolicy(String bucketName)
Deletes the bucket's policy.
|
|
void
|
deleteBucketWebsiteConfiguration(String bucketName)
Removes the website configuration for a bucket; this operation requires the
DeleteBucketWebsite permission.
|
|
void
|
deleteObject(String bucketName, String key, String versionId)
Deletes a given object, only the owner of the bucket containing the version
can perform this operation.
|
|
void
|
deleteObjects(String bucketName, List<KeyVersion> keys)
Deletes multiple objects in a single bucket from S3.
|
|
synchronized
void
|
disconnect()
|
|
String
|
getBucketPolicy(String bucketName)
Answers the policy for the given bucket.
|
|
BucketVersioningConfiguration
|
getBucketVersioningConfiguration(String bucketName)
Returns the versioning configuration for the specified bucket.
|
|
BucketWebsiteConfiguration
|
getBucketWebsiteConfiguration(String bucketName)
Answers the website of the given bucket.
|
|
Integer
|
getConnectionTimeout()
|
|
S3Object
|
getObject(String bucketName, String key, String versionId, Date modifiedSince, Date unmodifiedSince)
Gets the object stored in Amazon S3 under the specified bucket and key.
|
|
S3ObjectInputStream
|
getObjectContent(String bucketName, String key, String versionId, Date modifiedSince, Date unmodifiedSince)
Gets the content of an object stored in Amazon S3 under the specified bucket
and key.
|
|
ObjectMetadata
|
getObjectMetadata(String bucketName, String key, String versionId)
Gets the metadata for the specified Amazon S3 object without actually fetching
the object itself.
|
|
String
|
getProxyHost()
|
|
String
|
getProxyPassword()
|
|
int
|
getProxyPort()
|
|
String
|
getProxyUsername()
|
|
Integer
|
getSocketTimeout()
|
|
boolean
|
isConnected()
|
|
List<Bucket>
|
listBuckets()
Answers a list of all Amazon S3 buckets that the authenticated sender of the
request owns.
|
|
Iterable<S3VersionSummary>
|
listObjectVersions(String bucketName)
Lazily lists all object versions for a given bucket that has versioning enabled.
|
|
Iterable<S3ObjectSummary>
|
listObjects(String bucketName, String prefix)
Lazily lists all objects for a given prefix.
|
|
void
|
setBucketPolicy(String bucketName, String policyText)
Sets the bucket's policy, overriding any previously set.
|
|
void
|
setBucketVersioningStatus(String bucketName, VersioningStatus versioningStatus)
Sets the versioning status for the given bucket.
|
|
void
|
setBucketWebsiteConfiguration(String bucketName, BucketWebsiteConfiguration bucketWebsiteConfiguration)
Sets the given bucket's website configuration.
|
|
void
|
setClient(SimpleAmazonS3 client)
|
|
void
|
setConnectionTimeout(Integer connectionTimeout)
|
|
void
|
setObjectStorageClass(String bucketName, String key, StorageClass storageClass)
Sets the Amazon S3 storage class for the given object.
|
|
void
|
setProxyHost(String proxyHost)
|
|
void
|
setProxyPassword(String proxyPassword)
|
|
void
|
setProxyPort(Integer proxyPort)
|
|
void
|
setProxyUsername(String proxyUsername)
|
|
void
|
setSocketTimeout(Integer socketTimeout)
|