程序包 | 说明 |
---|---|
com.sinacloud.scs | |
com.sinacloud.scs.auth | |
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.model.transform | |
com.sinacloud.scs.services.scs.transfer |
Transfer management.
|
com.sinacloud.scs.services.scs.transfer.internal |
限定符和类型 | 类和说明 |
---|---|
class |
SCSServiceException
Extension of AmazonClientException that represents an error response returned
by an Amazon web service.
|
限定符和类型 | 方法和说明 |
---|---|
byte[] |
AbstractAWSSigner.hash(byte[] data)
Hashes the binary data using the SHA-256 algorithm.
|
protected byte[] |
AbstractAWSSigner.hash(InputStream input) |
byte[] |
AbstractAWSSigner.hash(String text)
Hashes the string contents (assumed to be UTF-8) using the SHA-256
algorithm.
|
protected byte[] |
AbstractAWSSigner.sign(byte[] data,
byte[] key,
SigningAlgorithm algorithm) |
void |
Signer.sign(Request<?> request,
AWSCredentials credentials) |
byte[] |
AbstractAWSSigner.sign(String stringData,
byte[] key,
SigningAlgorithm algorithm) |
protected String |
AbstractAWSSigner.signAndBase64Encode(byte[] data,
String key,
SigningAlgorithm algorithm)
Computes an RFC 2104-compliant HMAC signature for an array of bytes and
returns the result as a Base64 encoded string.
|
protected String |
AbstractAWSSigner.signAndBase64Encode(String data,
String key,
SigningAlgorithm algorithm)
Computes an RFC 2104-compliant HMAC signature and returns the result as a
Base64 encoded string.
|
限定符和类型 | 方法和说明 |
---|---|
<T> Response<T> |
HttpConnect.execute(Request<?> request,
HttpResponseHandler<SCSWebServiceResponse<T>> responseHandler,
HttpResponseHandler<SCSServiceException> errorResponseHandler,
ExecutionContext executionContext)
Executes the request and returns the result.
|
限定符和类型 | 方法和说明 |
---|---|
long |
RetryPolicy.BackoffStrategy.delayBeforeNextRetry(SCSWebServiceRequest originalRequest,
SCSClientException exception,
int retriesAttempted)
Returns the delay (in milliseconds) before next retry attempt.
|
boolean |
RetryPolicy.RetryCondition.shouldRetry(SCSWebServiceRequest originalRequest,
SCSClientException exception,
int retriesAttempted)
Returns whether a failed request should be retried according to the
given request context.
|
boolean |
PredefinedRetryPolicies.SDKDefaultRetryCondition.shouldRetry(SCSWebServiceRequest originalRequest,
SCSClientException exception,
int retriesAttempted) |
限定符和类型 | 方法和说明 |
---|---|
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) |
URL |
SCS.generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest)
Returns a pre-signed URL for accessing an SCS resource.
|
URL |
SCSClient.generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest) |
URL |
SCS.generatePresignedUrl(String bucketName,
String key,
Date expiration,
boolean bucketNameAsDomain)
Returns a pre-signed URL for accessing an SCS resource.
|
URL |
SCSClient.generatePresignedUrl(String bucketName,
String key,
Date expiration,
boolean bucketNameAsDomain) |
URL |
SCS.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethod method,
boolean bucketNameAsDomain)
Returns a pre-signed URL for accessing an SCS resource.
|
URL |
SCSClient.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethod method,
boolean bucketNameAsDomain) |
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) |
限定符和类型 | 方法和说明 |
---|---|
void |
S3QueryStringSigner.sign(Request<?> request,
AWSCredentials credentials) |
void |
S3Signer.sign(Request<?> request,
AWSCredentials credentials) |
限定符和类型 | 类和说明 |
---|---|
class |
SCSS3Exception
Provides an extension of the AmazonServiceException
for errors reported by Amazon S3 while
processing a request.
|
限定符和类型 | 方法和说明 |
---|---|
byte[] |
AclJsonFactory.convertToJsonByteArray(AccessControlList acl)
转换成json格式
{
'SINA0000000000000001' : [ "read", "read_acp" , "write", "write_acp" ],
'GRPS000000ANONYMOUSE' : [ "read", "read_acp" , "write", "write_acp" ],
'GRPS0000000CANONICAL' : [ "read", "read_acp" , "write", "write_acp" ],
}
|
AccessControlList |
JsonResponsesParser.parseAccessControlListResponse(InputStream inputStream)
Parses an AccessControlListHandler response json document from an input
stream
|
BucketInfo |
JsonResponsesParser.parseBucketInfoResponse(InputStream inputStream)
Parse BucketInfo Response
|
InitiateMultipartUploadResult |
JsonResponsesParser.parseInitiateMultipartUploadResponse(InputStream inputStream)
{
"Bucket": "
|
ObjectListing |
JsonResponsesParser.parseListBucketObjectsResponse(InputStream inputStream)
Parses a ListBucket response json document from an input stream
|
List<Bucket> |
JsonResponsesParser.parseListMyBucketsResponse(InputStream inputStream)
Parses a ListAllMyBuckets response json document from an input stream
|
PartListing |
JsonResponsesParser.parseListPartsResponse(InputStream inputStream)
* {
"Bucket": "
|
ObjectInfo |
JsonResponsesParser.parseObjectInfoResponse(InputStream inputStream)
Parse ObjectInfo Response
|
限定符和类型 | 方法和说明 |
---|---|
SCSClientException |
Transfer.waitForException()
Waits for this transfer to finish and returns any error that occurred, or
returns
null if no errors occurred. |
限定符和类型 | 方法和说明 |
---|---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
protected SCSClientException |
AbstractTransfer.unwrapExecutionException(ExecutionException e)
Unwraps the root exception that caused the specified ExecutionException
and returns it.
|
SCSClientException |
AbstractTransfer.waitForException()
Waits for this transfer to finish and returns any error that occurred, or
returns
null if no errors occurred. |
限定符和类型 | 方法和说明 |
---|---|
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.