程序包 | 说明 |
---|---|
com.sinacloud.scs.http | |
com.sinacloud.scs.retry | |
com.sinacloud.scs.services.scs | |
com.sinacloud.scs.services.scs.internal | |
com.sinacloud.scs.services.scs.model |
Classes modeling the various types represented by Amazon S3.
|
com.sinacloud.scs.services.scs.transfer |
Transfer management.
|
com.sinacloud.scs.services.scs.transfer.internal |
限定符和类型 | 方法和说明 |
---|---|
<T> Response<T> |
HttpConnect.execute(Request<?> request,
HttpResponseHandler<SCSWebServiceResponse<T>> responseHandler,
HttpResponseHandler<SCSServiceException> errorResponseHandler,
ExecutionContext executionContext)
Executes the request and returns the result.
|
限定符和类型 | 方法和说明 |
---|---|
<T> Response<T> |
HttpConnect.execute(Request<?> request,
HttpResponseHandler<SCSWebServiceResponse<T>> responseHandler,
HttpResponseHandler<SCSServiceException> errorResponseHandler,
ExecutionContext executionContext)
Executes the request and returns the result.
|
限定符和类型 | 方法和说明 |
---|---|
static boolean |
RetryUtils.isClockSkewError(SCSServiceException ase)
Returns true if the specified exception is a clock skew error.
|
static boolean |
RetryUtils.isRequestEntityTooLargeException(SCSServiceException ase)
Returns true if the specified exception is a request entity too large
error.
|
static boolean |
RetryUtils.isThrottlingException(SCSServiceException ase)
Returns true if the specified exception is a throttling error.
|
限定符和类型 | 方法和说明 |
---|---|
ObjectMetadata |
SCS.completeMultipartUpload(CompleteMultipartUploadRequest request)
Completes a multipart upload by assembling previously uploaded parts.
|
ObjectMetadata |
SCSClient.completeMultipartUpload(CompleteMultipartUploadRequest completeMultipartUploadRequest) |
void |
SCS.copyObject(CopyObjectRequest copyObjectRequest)
Copies a source object to a new destination in SCS.
|
void |
SCSClient.copyObject(CopyObjectRequest copyObjectRequest) |
void |
SCS.copyObject(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey)
Copies a source object to a new destination in SCS.
|
void |
SCSClient.copyObject(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey) |
Bucket |
SCS.createBucket(CreateBucketRequest createBucketRequest)
Creates a new SCS bucket in the default
Every object stored in SCS is contained within a bucket.
|
Bucket |
SCSClient.createBucket(CreateBucketRequest createBucketRequest) |
Bucket |
SCS.createBucket(String bucketName)
Creates a new SCS bucket with the specified name in the default
Every object stored in SCS is contained within a bucket.
|
Bucket |
SCSClient.createBucket(String bucketName) |
void |
SCS.deleteBucket(DeleteBucketRequest deleteBucketRequest)
Deletes the specified bucket.
|
void |
SCSClient.deleteBucket(DeleteBucketRequest deleteBucketRequest) |
void |
SCS.deleteBucket(String bucketName)
Deletes the specified bucket.
|
void |
SCSClient.deleteBucket(String bucketName) |
void |
SCS.deleteObject(DeleteObjectRequest deleteObjectRequest)
Deletes the specified object in the specified bucket.
|
void |
SCSClient.deleteObject(DeleteObjectRequest deleteObjectRequest) |
void |
SCS.deleteObject(String bucketName,
String key)
Deletes the specified object in the specified bucket.
|
void |
SCSClient.deleteObject(String bucketName,
String key) |
boolean |
SCS.doesBucketExist(String bucketName)
Checks if the specified bucket exists.
|
boolean |
SCSClient.doesBucketExist(String bucketName) |
AccessControlList |
SCS.getBucketAcl(GetBucketAclRequest getBucketAclRequest)
Gets the
AccessControlList (ACL) for the specified SCS
bucket. |
AccessControlList |
SCSClient.getBucketAcl(GetBucketAclRequest getBucketAclRequest) |
AccessControlList |
SCS.getBucketAcl(String bucketName)
Gets the
AccessControlList (ACL) for the specified SCS bucket. |
AccessControlList |
SCSClient.getBucketAcl(String bucketName) |
BucketInfo |
SCS.getBucketInfo(String bucketName)
http://open.sinastorage.cn/?
|
BucketInfo |
SCSClient.getBucketInfo(String bucketName) |
S3Object |
SCS.getObject(GetObjectRequest getObjectRequest)
Gets the object stored in SCS under the specified bucket and
key.
|
S3Object |
SCSClient.getObject(GetObjectRequest getObjectRequest) |
ObjectMetadata |
SCS.getObject(GetObjectRequest getObjectRequest,
File destinationFile)
Gets the object metadata for the object stored
in SCS under the specified bucket and key,
and saves the object contents to the
specified file.
|
ObjectMetadata |
SCSClient.getObject(GetObjectRequest getObjectRequest,
File destinationFile) |
S3Object |
SCS.getObject(String bucketName,
String key)
Gets the object stored in SCS under the specified bucket and
key.
|
S3Object |
SCSClient.getObject(String bucketName,
String key) |
AccessControlList |
SCS.getObjectAcl(String bucketName,
String key)
Gets the
AccessControlList (ACL) for the specified object in SCS. |
AccessControlList |
SCSClient.getObjectAcl(String bucketName,
String key) |
ObjectInfo |
SCS.getObjectInfo(String bucketName,
String key)
http://open.sinastorage.cn/?
|
ObjectInfo |
SCSClient.getObjectInfo(String bucketName,
String key) |
ObjectMetadata |
SCS.getObjectMetadata(GetObjectMetadataRequest getObjectMetadataRequest)
Gets the metadata for the specified SCS object without
actually fetching the object itself.
|
ObjectMetadata |
SCSClient.getObjectMetadata(GetObjectMetadataRequest getObjectMetadataRequest) |
ObjectMetadata |
SCS.getObjectMetadata(String bucketName,
String key)
Gets the metadata for the specified SCS object without
actually fetching the object itself.
|
ObjectMetadata |
SCSClient.getObjectMetadata(String bucketName,
String key) |
InitiateMultipartUploadResult |
SCS.initiateMultipartUpload(InitiateMultipartUploadRequest request)
Initiates a multipart upload and returns an InitiateMultipartUploadResult
which contains an upload ID.
|
InitiateMultipartUploadResult |
SCSClient.initiateMultipartUpload(InitiateMultipartUploadRequest initiateMultipartUploadRequest) |
InitiateMultipartUploadResult |
SCS.initiateMultipartUpload(String bucketName,
String key)
Initiates a multipart upload and returns an InitiateMultipartUploadResult
|
InitiateMultipartUploadResult |
SCSClient.initiateMultipartUpload(String bucketName,
String key) |
List<Bucket> |
SCS.listBuckets()
Returns a list of all SCS buckets that the
authenticated sender of the request owns.
|
List<Bucket> |
SCSClient.listBuckets() |
List<Bucket> |
SCS.listBuckets(ListBucketsRequest listBucketsRequest)
Returns a list of all SCS buckets that the
authenticated sender of the request owns.
|
List<Bucket> |
SCSClient.listBuckets(ListBucketsRequest listBucketsRequest) |
ObjectListing |
SCS.listNextBatchOfObjects(ObjectListing previousObjectListing)
Provides an easy way to continue a truncated object listing and retrieve
the next page of results.
|
ObjectListing |
SCSClient.listNextBatchOfObjects(ObjectListing previousObjectListing) |
ObjectListing |
SCS.listObjects(ListObjectsRequest listObjectsRequest)
Returns a list of summary information about the objects in the specified
bucket.
|
ObjectListing |
SCSClient.listObjects(ListObjectsRequest listObjectsRequest) |
ObjectListing |
SCS.listObjects(String bucketName)
Returns a list of summary information about the objects in the specified
buckets.
|
ObjectListing |
SCSClient.listObjects(String bucketName) |
ObjectListing |
SCS.listObjects(String bucketName,
String prefix)
Returns a list of summary information about the objects in the specified
bucket.
|
ObjectListing |
SCSClient.listObjects(String bucketName,
String prefix) |
PartListing |
SCS.listParts(ListPartsRequest request)
Lists the parts that have been uploaded for a specific multipart upload.
|
PartListing |
SCSClient.listParts(ListPartsRequest listPartsRequest) |
PutObjectResult |
SCS.putObject(PutObjectRequest putObjectRequest)
Uploads a new object to the specified SCS bucket.
|
PutObjectResult |
SCSClient.putObject(PutObjectRequest putObjectRequest) |
PutObjectResult |
SCS.putObject(String bucketName,
String key,
File file)
Uploads the specified file to SCS under the specified bucket and
key name.
|
PutObjectResult |
SCSClient.putObject(String bucketName,
String key,
File file) |
PutObjectResult |
SCS.putObject(String bucketName,
String key,
File file,
Map<String,String> requestHeader)
Uploads the specified file to SCS under the specified bucket and
key name.
|
PutObjectResult |
SCSClient.putObject(String bucketName,
String key,
File file,
Map<String,String> requestHeader) |
PutObjectResult |
SCS.putObject(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata)
Uploads the specified input stream and object metadata to SCS under
the specified bucket and key name.
|
PutObjectResult |
SCSClient.putObject(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata) |
PutObjectResult |
SCS.putObjectRelax(String bucketName,
String key,
String fileSha1,
long fileLength)
秒传接口
|
void |
SCS.setBucketAcl(SetBucketAclRequest setBucketAclRequest)
Sets the
AccessControlList for the specified SCS bucket. |
void |
SCSClient.setBucketAcl(SetBucketAclRequest setBucketAclRequest) |
void |
SCS.setBucketAcl(String bucketName,
AccessControlList acl)
Sets the
AccessControlList for the specified SCS bucket. |
void |
SCSClient.setBucketAcl(String bucketName,
AccessControlList acl) |
void |
SCS.setObjectAcl(String bucketName,
String key,
AccessControlList acl)
Sets the
AccessControlList for the specified object in SCS. |
void |
SCSClient.setObjectAcl(String bucketName,
String key,
AccessControlList acl) |
void |
SCS.setObjectMetadata(String bucketName,
String key,
ObjectMetadata objectMetadata)
设置object metadata
|
void |
SCSClient.setObjectMetadata(String bucketName,
String key,
ObjectMetadata objectMetadata) |
UploadPartResult |
SCS.uploadPart(UploadPartRequest request)
Uploads a part in a multipart upload.
|
UploadPartResult |
SCSClient.uploadPart(UploadPartRequest uploadPartRequest) |
限定符和类型 | 方法和说明 |
---|---|
SCSServiceException |
S3ErrorResponseHandler.handle(HttpResponse errorResponse) |
限定符和类型 | 类和说明 |
---|---|
class |
SCSS3Exception
Provides an extension of the AmazonServiceException
for errors reported by Amazon S3 while
processing a request.
|
限定符和类型 | 方法和说明 |
---|---|
Upload |
TransferManager.upload(PutObjectRequest putObjectRequest)
Schedules a new transfer to upload data to Amazon S3.
|
Upload |
TransferManager.upload(String bucketName,
String key,
File file)
Schedules a new transfer to upload data to Amazon S3.
|
Upload |
TransferManager.upload(String bucketName,
String key,
InputStream input,
ObjectMetadata objectMetadata)
Schedules a new transfer to upload data to Amazon S3.
|
void |
Transfer.waitForCompletion()
Waits for this transfer to complete.
|
UploadResult |
Upload.waitForUploadResult()
Waits for this upload to complete and returns the result of this
upload.
|
限定符和类型 | 方法和说明 |
---|---|
void |
AbstractTransfer.waitForCompletion()
Waits for this transfer to complete.
|
void |
MultipleFileDownloadImpl.waitForCompletion()
Waits for this transfer to complete.
|
void |
MultipleFileUploadImpl.waitForCompletion()
Waits for this transfer to complete.
|
UploadResult |
UploadImpl.waitForUploadResult()
Waits for this upload to complete and returns the result of this
upload.
|
Copyright © 2016. All rights reserved.