限定符和类型 | 方法和说明 |
---|---|
void |
COSClient.abortMultipartUpload(AbortMultipartUploadRequest abortMultipartUploadRequest) |
void |
COS.abortMultipartUpload(AbortMultipartUploadRequest request)
Aborts a multipart upload.
|
AppendObjectResult |
COSClient.appendObject(AppendObjectRequest appendObjectRequest) |
AppendObjectResult |
COS.appendObject(AppendObjectRequest appendObjectRequest)
append data to an COS object
|
CompleteMultipartUploadResult |
COSClient.completeMultipartUpload(CompleteMultipartUploadRequest completeMultipartUploadRequest) |
CompleteMultipartUploadResult |
COS.completeMultipartUpload(CompleteMultipartUploadRequest request)
Completes a multipart upload by assembling previously uploaded parts.
|
CopyObjectResult |
COSClient.copyObject(CopyObjectRequest copyObjectRequest) |
CopyObjectResult |
COS.copyObject(CopyObjectRequest copyObjectRequest)
Copy a source object to a new destination in COS.
|
CopyObjectResult |
COSClient.copyObject(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey) |
CopyObjectResult |
COS.copyObject(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey)
Copy a source object to a new destination in COS.
|
CopyPartResult |
COSClient.copyPart(CopyPartRequest copyPartRequest) |
CopyPartResult |
COS.copyPart(CopyPartRequest copyPartRequest)
Copies a source object to a part of a multipart upload.
|
Bucket |
COSClient.createBucket(CreateBucketRequest createBucketRequest) |
Bucket |
COS.createBucket(CreateBucketRequest createBucketRequest)
Creates a new bucket in the region which is set in ClientConfig
Every object stored in is contained within a bucket.
|
Bucket |
COSClient.createBucket(String bucketName) |
Bucket |
COS.createBucket(String bucketName)
Creates a new bucket in the region which is set in ClientConfig
Every object stored in is contained within a bucket.
|
void |
COSClient.deleteBucket(DeleteBucketRequest deleteBucketRequest) |
void |
COS.deleteBucket(DeleteBucketRequest deleteBucketRequest)
Deletes the specified bucket.
|
void |
COSClient.deleteBucket(String bucketName) |
void |
COS.deleteBucket(String bucketName)
Deletes the specified bucket.
|
void |
COSClient.deleteBucketCrossOriginConfiguration(DeleteBucketCrossOriginConfigurationRequest deleteBucketCrossOriginConfigurationRequest) |
void |
COS.deleteBucketCrossOriginConfiguration(DeleteBucketCrossOriginConfigurationRequest deleteBucketCrossOriginConfigurationRequest)
Delete the cross origin configuration for the specified bucket.
|
void |
COSClient.deleteBucketCrossOriginConfiguration(String bucketName) |
void |
COS.deleteBucketCrossOriginConfiguration(String bucketName)
Delete the cross origin configuration for the specified bucket.
|
void |
COSClient.deleteBucketDomainCertificate(BucketDomainCertificateRequest deleteBucketDomainCertificateRequest) |
void |
COS.deleteBucketDomainCertificate(BucketDomainCertificateRequest deleteBucketDomainCertificateRequest)
This operation removes the domain certificate for a bucket.
|
void |
COSClient.deleteBucketDomainCertificate(String bucketName,
String domainName) |
void |
COS.deleteBucketDomainCertificate(String bucketName,
String domainName)
This operation removes the domain certificate for a bucket.
|
void |
COS.deleteBucketDomainConfiguration(DeleteBucketDomainConfigurationRequest deleteBucketDomainConfigurationRequest)
This operation removes the domain configuration for a bucket.
|
void |
COSClient.deleteBucketDomainConfiguration(String bucketName) |
void |
COS.deleteBucketDomainConfiguration(String bucketName)
This operation removes the domain configuration for a bucket.
|
DeleteBucketInventoryConfigurationResult |
COSClient.deleteBucketInventoryConfiguration(DeleteBucketInventoryConfigurationRequest deleteBucketInventoryConfigurationRequest) |
DeleteBucketInventoryConfigurationResult |
COS.deleteBucketInventoryConfiguration(DeleteBucketInventoryConfigurationRequest deleteBucketInventoryConfigurationRequest)
Deletes an inventory configuration (identified by the inventory ID) from the bucket.
|
DeleteBucketInventoryConfigurationResult |
COSClient.deleteBucketInventoryConfiguration(String bucketName,
String id) |
DeleteBucketInventoryConfigurationResult |
COS.deleteBucketInventoryConfiguration(String bucketName,
String id)
Deletes an inventory configuration (identified by the inventory ID) from the bucket.
|
void |
COSClient.deleteBucketLifecycleConfiguration(DeleteBucketLifecycleConfigurationRequest deleteBucketLifecycleConfigurationRequest) |
void |
COS.deleteBucketLifecycleConfiguration(DeleteBucketLifecycleConfigurationRequest deleteBucketLifecycleConfigurationRequest)
Removes the lifecycle configuration for the bucket specified.
|
void |
COSClient.deleteBucketLifecycleConfiguration(String bucketName) |
void |
COS.deleteBucketLifecycleConfiguration(String bucketName)
Removes the lifecycle configuration for the bucket specified.
|
void |
COSClient.deleteBucketPolicy(DeleteBucketPolicyRequest deleteBucketPolicyRequest) |
void |
COS.deleteBucketPolicy(DeleteBucketPolicyRequest deleteBucketPolicyRequest)
Deletes the policy associated with the specified bucket.
|
void |
COSClient.deleteBucketPolicy(String bucketName) |
void |
COS.deleteBucketPolicy(String bucketName)
Deletes the policy associated with the specified bucket.
|
void |
COSClient.deleteBucketReplicationConfiguration(DeleteBucketReplicationConfigurationRequest deleteBucketReplicationConfigurationRequest) |
void |
COS.deleteBucketReplicationConfiguration(DeleteBucketReplicationConfigurationRequest deleteBucketReplicationConfigurationRequest)
Deletes the replication configuration for the given QCloud bucket.
|
void |
COSClient.deleteBucketReplicationConfiguration(String bucketName) |
void |
COS.deleteBucketReplicationConfiguration(String bucketName)
Deletes the replication configuration for the given QCloud bucket.
|
void |
COSClient.deleteBucketWebsiteConfiguration(DeleteBucketWebsiteConfigurationRequest deleteBucketWebsiteConfigurationRequest) |
void |
COS.deleteBucketWebsiteConfiguration(DeleteBucketWebsiteConfigurationRequest deleteBucketWebsiteConfigurationRequest)
This operation removes the website configuration for a bucket.
|
void |
COSClient.deleteBucketWebsiteConfiguration(String bucketName) |
void |
COS.deleteBucketWebsiteConfiguration(String bucketName)
This operation removes the website configuration for a bucket.
|
void |
COSClient.deleteObject(DeleteObjectRequest deleteObjectRequest) |
void |
COS.deleteObject(DeleteObjectRequest deleteObjectRequest)
Deletes the specified object in the specified bucket.
|
void |
COSClient.deleteObject(String bucketName,
String key) |
void |
COS.deleteObject(String bucketName,
String key)
Deletes the specified object in the specified bucket.
|
DeleteObjectsResult |
COSClient.deleteObjects(DeleteObjectsRequest deleteObjectsRequest) |
DeleteObjectsResult |
COS.deleteObjects(DeleteObjectsRequest deleteObjectsRequest)
Deletes multiple objects in a single bucket from COS.
|
void |
COSClient.deleteVersion(DeleteVersionRequest deleteVersionRequest) |
void |
COS.deleteVersion(DeleteVersionRequest deleteVersionRequest)
Deletes a specific version of the specified object in the specified bucket.
|
void |
COSClient.deleteVersion(String bucketName,
String key,
String versionId) |
void |
COS.deleteVersion(String bucketName,
String key,
String versionId)
Deletes a specific version of the specified object in the specified bucket.
|
boolean |
COSClient.doesBucketExist(String bucketName) |
boolean |
COS.doesBucketExist(String bucketName)
Checks if the specified bucket exists. use this method to determine if a specified bucket
name already exists, and therefore can't be used to create a new bucket.
|
boolean |
COSClient.doesObjectExist(String bucketName,
String objectName) |
boolean |
COS.doesObjectExist(String bucketName,
String objectName) |
URL |
COSClient.generatePresignedUrl(GeneratePresignedUrlRequest req) |
URL |
COS.generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest)
Returns a pre-signed URL for accessing COS resource. you can specify the expiration time.
|
URL |
COSClient.generatePresignedUrl(GeneratePresignedUrlRequest req,
Boolean signHost) |
URL |
COS.generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest,
Boolean signHost)
Returns a pre-signed URL for accessing COS resource. you can specify the expiration time.
|
URL |
COSClient.generatePresignedUrl(String bucketName,
String key,
Date expiration) |
URL |
COS.generatePresignedUrl(String bucketName,
String key,
Date expiration) |
URL |
COSClient.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethodName method) |
URL |
COS.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethodName method)
Returns a pre-signed URL for accessing COS resource. you can specify the expiration time.
|
URL |
COSClient.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethodName method,
Map<String,String> headers,
Map<String,String> params) |
URL |
COS.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethodName method,
Map<String,String> headers,
Map<String,String> params)
Returns a pre-signed URL for accessing COS resource. you can specify the expiration time.
|
URL |
COSClient.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethodName method,
Map<String,String> headers,
Map<String,String> params,
Boolean signPrefixMode,
Boolean signHost) |
URL |
COS.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethodName method,
Map<String,String> headers,
Map<String,String> params,
Boolean signPrefixMode,
Boolean signHost) |
AccessControlList |
COSClient.getBucketAcl(GetBucketAclRequest getBucketAclRequest) |
AccessControlList |
COS.getBucketAcl(GetBucketAclRequest getBucketAclRequest)
Gets the
AccessControlList (ACL) for the specified bucket. |
AccessControlList |
COSClient.getBucketAcl(String bucketName) |
AccessControlList |
COS.getBucketAcl(String bucketName)
Gets the
AccessControlList (ACL) for the specified bucket. |
BucketCrossOriginConfiguration |
COSClient.getBucketCrossOriginConfiguration(GetBucketCrossOriginConfigurationRequest getBucketCrossOriginConfigurationRequest) |
BucketCrossOriginConfiguration |
COS.getBucketCrossOriginConfiguration(GetBucketCrossOriginConfigurationRequest getBucketCrossOriginConfigurationRequest)
Gets the cross origin configuration for the specified bucket, or null if no configuration has
been established.
|
BucketCrossOriginConfiguration |
COSClient.getBucketCrossOriginConfiguration(String bucketName) |
BucketCrossOriginConfiguration |
COS.getBucketCrossOriginConfiguration(String bucketName)
Gets the cross origin configuration for the specified bucket, or null if no configuration has
been established.
|
BucketGetDomainCertificate |
COSClient.getBucketDomainCertificate(BucketDomainCertificateRequest getBucketDomainCertificateRequest) |
BucketGetDomainCertificate |
COS.getBucketDomainCertificate(BucketDomainCertificateRequest getBucketDomainCertificateRequest)
Returns the domain certificate for the specified bucket.
|
BucketGetDomainCertificate |
COSClient.getBucketDomainCertificate(String bucketName,
String domainName) |
BucketGetDomainCertificate |
COS.getBucketDomainCertificate(String bucketName,
String domainName)
Returns the domain certificate for the specified bucket.
|
BucketDomainConfiguration |
COSClient.getBucketDomainConfiguration(GetBucketDomainConfigurationRequest getBucketDomainConfigurationRequest) |
BucketDomainConfiguration |
COS.getBucketDomainConfiguration(GetBucketDomainConfigurationRequest getBucketDomainConfigurationRequest)
Returns the domain configuration for the specified bucket.
|
BucketDomainConfiguration |
COSClient.getBucketDomainConfiguration(String bucketName) |
BucketDomainConfiguration |
COS.getBucketDomainConfiguration(String bucketName)
Returns the domain configuration for the specified bucket.
|
GetBucketInventoryConfigurationResult |
COSClient.getBucketInventoryConfiguration(GetBucketInventoryConfigurationRequest getBucketInventoryConfigurationRequest) |
GetBucketInventoryConfigurationResult |
COS.getBucketInventoryConfiguration(GetBucketInventoryConfigurationRequest getBucketInventoryConfigurationRequest)
Returns an inventory configuration (identified by the inventory ID) from the bucket.
|
GetBucketInventoryConfigurationResult |
COSClient.getBucketInventoryConfiguration(String bucketName,
String id) |
GetBucketInventoryConfigurationResult |
COS.getBucketInventoryConfiguration(String bucketName,
String id)
Returns an inventory configuration (identified by the inventory ID) from the bucket.
|
BucketLifecycleConfiguration |
COS.getBucketLifecycleConfiguration(GetBucketLifecycleConfigurationRequest getBucketLifecycleConfigurationRequest)
Gets the lifecycle configuration for the specified bucket, or null if the specified bucket
does not exist or if no configuration has been established.
|
BucketLifecycleConfiguration |
COSClient.getBucketLifecycleConfiguration(String bucketName) |
BucketLifecycleConfiguration |
COS.getBucketLifecycleConfiguration(String bucketName)
Gets the lifecycle configuration for the specified bucket, or null if the specified bucket
does not exist or if no configuration has been established.
|
String |
COSClient.getBucketLocation(GetBucketLocationRequest getBucketLocationRequest) |
String |
COS.getBucketLocation(GetBucketLocationRequest getBucketLocationRequest)
Gets the geographical region where stores the specified bucket.
|
String |
COSClient.getBucketLocation(String bucketName) |
String |
COS.getBucketLocation(String bucketName)
Gets the geographical region where stores the specified bucket.
|
BucketLoggingConfiguration |
COSClient.getBucketLoggingConfiguration(GetBucketLoggingConfigurationRequest getBucketLoggingConfigurationRequest) |
BucketLoggingConfiguration |
COS.getBucketLoggingConfiguration(GetBucketLoggingConfigurationRequest getBucketLoggingConfigurationRequest)
Gets the logging configuration for the specified bucket.
|
BucketLoggingConfiguration |
COSClient.getBucketLoggingConfiguration(String bucketName) |
BucketLoggingConfiguration |
COS.getBucketLoggingConfiguration(String bucketName)
Gets the logging configuration for the specified bucket.
|
BucketPolicy |
COSClient.getBucketPolicy(GetBucketPolicyRequest getBucketPolicyRequest) |
BucketPolicy |
COS.getBucketPolicy(GetBucketPolicyRequest getBucketPolicyRequest)
Gets the policy for the specified bucket.
|
BucketPolicy |
COSClient.getBucketPolicy(String bucketName) |
BucketPolicy |
COS.getBucketPolicy(String bucketName)
Gets the policy for the specified bucket.
|
BucketRefererConfiguration |
COSClient.getBucketRefererConfiguration(GetBucketRefererConfigurationRequest getBucketRefererConfigurationRequest) |
BucketRefererConfiguration |
COS.getBucketRefererConfiguration(GetBucketRefererConfigurationRequest getBucketRefererConfigurationRequest)
Returns the referer configuration for the specified bucket.
|
BucketRefererConfiguration |
COSClient.getBucketRefererConfiguration(String bucketName) |
BucketRefererConfiguration |
COS.getBucketRefererConfiguration(String bucketName)
Returns the referer configuration for the specified bucket.
|
BucketReplicationConfiguration |
COSClient.getBucketReplicationConfiguration(GetBucketReplicationConfigurationRequest getBucketReplicationConfigurationRequest) |
BucketReplicationConfiguration |
COS.getBucketReplicationConfiguration(GetBucketReplicationConfigurationRequest getBucketReplicationConfigurationRequest)
Retrieves the replication configuration for the given QCloud bucket.
|
BucketReplicationConfiguration |
COSClient.getBucketReplicationConfiguration(String bucketName) |
BucketReplicationConfiguration |
COS.getBucketReplicationConfiguration(String bucketName)
Retrieves the replication configuration for the given QCloud bucket.
|
BucketVersioningConfiguration |
COSClient.getBucketVersioningConfiguration(GetBucketVersioningConfigurationRequest getBucketVersioningConfigurationRequest) |
BucketVersioningConfiguration |
COS.getBucketVersioningConfiguration(GetBucketVersioningConfigurationRequest getBucketVersioningConfigurationRequest)
Returns the versioning configuration for the specified bucket.
|
BucketVersioningConfiguration |
COSClient.getBucketVersioningConfiguration(String bucketName) |
BucketVersioningConfiguration |
COS.getBucketVersioningConfiguration(String bucketName)
Returns the versioning configuration for the specified bucket.
|
BucketWebsiteConfiguration |
COSClient.getBucketWebsiteConfiguration(GetBucketWebsiteConfigurationRequest getBucketWebsiteConfigurationRequest) |
BucketWebsiteConfiguration |
COS.getBucketWebsiteConfiguration(GetBucketWebsiteConfigurationRequest getBucketWebsiteConfigurationRequest)
Returns the website configuration for the specified bucket.
|
BucketWebsiteConfiguration |
COSClient.getBucketWebsiteConfiguration(String bucketName) |
BucketWebsiteConfiguration |
COS.getBucketWebsiteConfiguration(String bucketName)
Returns the website configuration for the specified bucket.
|
COSObject |
COSClient.getObject(GetObjectRequest getObjectRequest) |
COSObject |
COS.getObject(GetObjectRequest getObjectRequest)
Gets the object stored in under the specified bucket and key.
|
ObjectMetadata |
COSClient.getObject(GetObjectRequest getObjectRequest,
File destinationFile) |
ObjectMetadata |
COS.getObject(GetObjectRequest getObjectRequest,
File destinationFile)
Gets the object metadata for the object stored in under the specified bucket and key, and
saves the object contents to the specified file.
|
COSObject |
COSClient.getObject(String bucketName,
String key) |
COSObject |
COS.getObject(String bucketName,
String key)
Gets the object stored in under the specified bucket and key.
|
AccessControlList |
COSClient.getObjectAcl(GetObjectAclRequest getObjectAclRequest) |
AccessControlList |
COS.getObjectAcl(GetObjectAclRequest getObjectAclRequest)
Gets the
AccessControlList (ACL) for the specified object in Qcloud COS. |
AccessControlList |
COSClient.getObjectAcl(String bucketName,
String key) |
AccessControlList |
COS.getObjectAcl(String bucketName,
String key)
Gets the
AccessControlList (ACL) for the specified object in Qcloud COS. |
ObjectMetadata |
COSClient.getObjectMetadata(GetObjectMetadataRequest getObjectMetadataRequest) |
ObjectMetadata |
COS.getObjectMetadata(GetObjectMetadataRequest getObjectMetadataRequest)
Gets the metadata for the specified object without actually fetching the object itself.
|
ObjectMetadata |
COSClient.getObjectMetadata(String bucketName,
String key) |
ObjectMetadata |
COS.getObjectMetadata(String bucketName,
String key)
Gets the metadata for the specified object without actually fetching the object itself.
|
HeadBucketResult |
COSClient.headBucket(HeadBucketRequest headBucketRequest) |
HeadBucketResult |
COS.headBucket(HeadBucketRequest headBucketRequest)
Performs a head bucket operation on the requested bucket name.
|
InitiateMultipartUploadResult |
COSClient.initiateMultipartUpload(InitiateMultipartUploadRequest initiateMultipartUploadRequest) |
InitiateMultipartUploadResult |
COS.initiateMultipartUpload(InitiateMultipartUploadRequest request)
Initiates a multipart upload and returns an InitiateMultipartUploadResult which contains an
upload ID.
|
ListBucketInventoryConfigurationsResult |
COSClient.listBucketInventoryConfigurations(ListBucketInventoryConfigurationsRequest listBucketInventoryConfigurationsRequest) |
ListBucketInventoryConfigurationsResult |
COS.listBucketInventoryConfigurations(ListBucketInventoryConfigurationsRequest listBucketInventoryConfigurationsRequest)
Returns the list of inventory configurations for the bucket.
|
List<Bucket> |
COSClient.listBuckets() |
List<Bucket> |
COS.listBuckets()
Returns a list of all buckets that the authenticated sender of the request owns.
|
List<Bucket> |
COSClient.listBuckets(ListBucketsRequest listBucketsRequest) |
List<Bucket> |
COS.listBuckets(ListBucketsRequest listBucketsRequest)
Returns a list of all buckets that the authenticated sender of the request owns.
|
MultipartUploadListing |
COSClient.listMultipartUploads(ListMultipartUploadsRequest listMultipartUploadsRequest) |
MultipartUploadListing |
COS.listMultipartUploads(ListMultipartUploadsRequest request)
Lists in-progress multipart uploads.
|
ObjectListing |
COSClient.listNextBatchOfObjects(ListNextBatchOfObjectsRequest listNextBatchOfObjectsRequest) |
ObjectListing |
COS.listNextBatchOfObjects(ListNextBatchOfObjectsRequest listNextBatchOfObjectsRequest)
Provides an easy way to continue a truncated object listing and retrieve the next page of
results.
|
ObjectListing |
COSClient.listNextBatchOfObjects(ObjectListing previousObjectListing) |
ObjectListing |
COS.listNextBatchOfObjects(ObjectListing previousObjectListing)
Provides an easy way to continue a truncated object listing and retrieve the next page of
results.
|
VersionListing |
COSClient.listNextBatchOfVersions(ListNextBatchOfVersionsRequest listNextBatchOfVersionsRequest) |
VersionListing |
COS.listNextBatchOfVersions(ListNextBatchOfVersionsRequest listNextBatchOfVersionsRequest)
Provides an easy way to continue a truncated
VersionListing and retrieve the next
page of results. |
VersionListing |
COSClient.listNextBatchOfVersions(VersionListing previousVersionListing) |
VersionListing |
COS.listNextBatchOfVersions(VersionListing previousVersionListing)
Provides an easy way to continue a truncated
VersionListing and retrieve the next
page of results. |
ObjectListing |
COSClient.listObjects(ListObjectsRequest listObjectsRequest) |
ObjectListing |
COS.listObjects(ListObjectsRequest listObjectsRequest)
Returns a list of summary information about the objects in the specified bucket.
|
ObjectListing |
COSClient.listObjects(String bucketName) |
ObjectListing |
COS.listObjects(String bucketName)
Returns a list of summary information about the objects in the specified buckets.
|
ObjectListing |
COSClient.listObjects(String bucketName,
String prefix) |
ObjectListing |
COS.listObjects(String bucketName,
String prefix)
Returns a list of summary information about the objects in the specified bucket.
|
PartListing |
COSClient.listParts(ListPartsRequest listPartsRequest) |
PartListing |
COS.listParts(ListPartsRequest request)
Lists the parts that have been uploaded for a specific multipart upload.
|
VersionListing |
COSClient.listVersions(ListVersionsRequest listVersionsRequest) |
VersionListing |
COS.listVersions(ListVersionsRequest listVersionsRequest)
Returns a list of summary information about the versions in the specified bucket.
|
VersionListing |
COSClient.listVersions(String bucketName,
String prefix) |
VersionListing |
COS.listVersions(String bucketName,
String prefix)
Returns a list of summary information about the versions in the specified bucket.
|
VersionListing |
COSClient.listVersions(String bucketName,
String prefix,
String keyMarker,
String versionIdMarker,
String delimiter,
Integer maxResults) |
VersionListing |
COS.listVersions(String bucketName,
String prefix,
String keyMarker,
String versionIdMarker,
String delimiter,
Integer maxResults)
Returns a list of summary information about the versions in the specified bucket.
|
PutObjectResult |
COSClient.putObject(PutObjectRequest putObjectRequest) |
PutObjectResult |
COS.putObject(PutObjectRequest putObjectRequest)
Uploads a new object to the specified bucket.
|
PutObjectResult |
COSClient.putObject(String bucketName,
String key,
File file) |
PutObjectResult |
COS.putObject(String bucketName,
String key,
File file)
Uploads the specified file to under the specified bucket and key name.
|
PutObjectResult |
COSClient.putObject(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata) |
PutObjectResult |
COS.putObject(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata)
Uploads the specified file to under the specified bucket and key name.
|
PutObjectResult |
COSClient.putObject(String bucketName,
String key,
String content) |
PutObjectResult |
COS.putObject(String bucketName,
String key,
String content)
upload string content to a cos object. content will be encoded to bytes with UTF-8 encoding
|
void |
COSClient.rename(RenameRequest renameRequest) |
void |
COS.rename(RenameRequest renameRequest)
rename object, which contains both file or dir in fs
|
void |
COSClient.restoreObject(RestoreObjectRequest restoreObjectRequest) |
void |
COS.restoreObject(RestoreObjectRequest request)
Restore an object, which was transitioned to CAS from COS when it was expired, into COS
again.
|
void |
COSClient.restoreObject(String bucketName,
String key,
int expirationInDays) |
void |
COS.restoreObject(String bucketName,
String key,
int expirationInDays)
Restore an object, which was transitioned to CAS from COS when it was expired, into COS
again.
|
SelectObjectContentResult |
COSClient.selectObjectContent(SelectObjectContentRequest selectRequest) |
SelectObjectContentResult |
COS.selectObjectContent(SelectObjectContentRequest selectRequest)
This operation filters the contents of an COS object based on a simple Structured Query Language (SQL) statement.
|
void |
COSClient.setBucketAcl(SetBucketAclRequest setBucketAclRequest) |
void |
COS.setBucketAcl(SetBucketAclRequest setBucketAclRequest)
Sets the
AccessControlList for the specified bucket. |
void |
COSClient.setBucketAcl(String bucketName,
AccessControlList acl) |
void |
COS.setBucketAcl(String bucketName,
AccessControlList acl)
Sets the
AccessControlList for the specified bucket. |
void |
COSClient.setBucketAcl(String bucketName,
CannedAccessControlList acl) |
void |
COS.setBucketAcl(String bucketName,
CannedAccessControlList acl)
Sets the
CannedAccessControlList for the specified bucket. |
void |
COSClient.setBucketCrossOriginConfiguration(SetBucketCrossOriginConfigurationRequest setBucketCrossOriginConfigurationRequest) |
void |
COS.setBucketCrossOriginConfiguration(SetBucketCrossOriginConfigurationRequest setBucketCrossOriginConfigurationRequest)
Sets the cross origin configuration for the specified bucket.
|
void |
COSClient.setBucketCrossOriginConfiguration(String bucketName,
BucketCrossOriginConfiguration bucketCrossOriginConfiguration) |
void |
COS.setBucketCrossOriginConfiguration(String bucketName,
BucketCrossOriginConfiguration bucketCrossOriginConfiguration)
Sets the cross origin configuration for the specified bucket.
|
void |
COSClient.setBucketDomainCertificate(SetBucketDomainCertificateRequest setBucketDomainCertificateRequest) |
void |
COS.setBucketDomainCertificate(SetBucketDomainCertificateRequest setBucketDomainCertificateRequest)
Sets the domain certificate for the specified bucket.
|
void |
COSClient.setBucketDomainCertificate(String bucketName,
BucketPutDomainCertificate domainCertificate) |
void |
COS.setBucketDomainCertificate(String bucketName,
BucketPutDomainCertificate domainCertificate)
Sets the domain certificate for the specified bucket.
|
void |
COSClient.setBucketDomainConfiguration(SetBucketDomainConfigurationRequest setBucketDomainConfigurationRequest) |
void |
COS.setBucketDomainConfiguration(SetBucketDomainConfigurationRequest setBucketDomainConfigurationRequest)
Sets the domain configuration for the specified bucket.
|
void |
COSClient.setBucketDomainConfiguration(String bucketName,
BucketDomainConfiguration configuration) |
void |
COS.setBucketDomainConfiguration(String bucketName,
BucketDomainConfiguration configuration)
Sets the domain configuration for the specified bucket.
|
SetBucketInventoryConfigurationResult |
COSClient.setBucketInventoryConfiguration(SetBucketInventoryConfigurationRequest setBucketInventoryConfigurationRequest) |
SetBucketInventoryConfigurationResult |
COS.setBucketInventoryConfiguration(SetBucketInventoryConfigurationRequest setBucketInventoryConfigurationRequest)
Sets an inventory configuration (identified by the inventory ID) to the bucket.
|
SetBucketInventoryConfigurationResult |
COSClient.setBucketInventoryConfiguration(String bucketName,
InventoryConfiguration inventoryConfiguration) |
SetBucketInventoryConfigurationResult |
COS.setBucketInventoryConfiguration(String bucketName,
InventoryConfiguration inventoryConfiguration)
Sets an inventory configuration (identified by the inventory ID) to the bucket.
|
void |
COSClient.setBucketLifecycleConfiguration(SetBucketLifecycleConfigurationRequest setBucketLifecycleConfigurationRequest) |
void |
COS.setBucketLifecycleConfiguration(SetBucketLifecycleConfigurationRequest setBucketLifecycleConfigurationRequest)
Sets the lifecycle configuration for the specified bucket.
|
void |
COSClient.setBucketLifecycleConfiguration(String bucketName,
BucketLifecycleConfiguration bucketLifecycleConfiguration) |
void |
COS.setBucketLifecycleConfiguration(String bucketName,
BucketLifecycleConfiguration bucketLifecycleConfiguration)
Sets the lifecycle configuration for the specified bucket.
|
void |
COSClient.setBucketLoggingConfiguration(SetBucketLoggingConfigurationRequest setBucketLoggingConfigurationRequest) |
void |
COS.setBucketLoggingConfiguration(SetBucketLoggingConfigurationRequest setBucketLoggingConfigurationRequest)
Sets the logging configuration for the specified bucket.
|
void |
COSClient.setBucketPolicy(SetBucketPolicyRequest setBucketPolicyRequest) |
void |
COS.setBucketPolicy(SetBucketPolicyRequest setBucketPolicyRequest)
Sets the policy associated with the specified bucket.
|
void |
COSClient.setBucketPolicy(String bucketName,
String policyText) |
void |
COS.setBucketPolicy(String bucketName,
String policyText)
Sets the policy associated with the specified bucket.
|
void |
COSClient.setBucketRefererConfiguration(SetBucketRefererConfigurationRequest setBucketRefererConfigurationRequest) |
void |
COS.setBucketRefererConfiguration(SetBucketRefererConfigurationRequest setBucketRefererConfigurationRequest)
Sets the referer configuration for the specified bucket.
|
void |
COSClient.setBucketRefererConfiguration(String bucketName,
BucketRefererConfiguration configuration) |
void |
COS.setBucketRefererConfiguration(String bucketName,
BucketRefererConfiguration configuration)
Sets the referer configuration for the specified bucket.
|
void |
COSClient.setBucketReplicationConfiguration(SetBucketReplicationConfigurationRequest setBucketReplicationConfigurationRequest) |
void |
COS.setBucketReplicationConfiguration(SetBucketReplicationConfigurationRequest setBucketReplicationConfigurationRequest)
Sets a replication configuration for the QCloud bucket.
|
void |
COSClient.setBucketReplicationConfiguration(String bucketName,
BucketReplicationConfiguration configuration) |
void |
COS.setBucketReplicationConfiguration(String bucketName,
BucketReplicationConfiguration configuration)
Sets a replication configuration for a bucket.
|
void |
COSClient.setBucketVersioningConfiguration(SetBucketVersioningConfigurationRequest setBucketVersioningConfigurationRequest) |
void |
COS.setBucketVersioningConfiguration(SetBucketVersioningConfigurationRequest setBucketVersioningConfigurationRequest)
Sets the versioning configuration for the specified bucket.
|
void |
COSClient.setBucketWebsiteConfiguration(SetBucketWebsiteConfigurationRequest setBucketWebsiteConfigurationRequest) |
void |
COS.setBucketWebsiteConfiguration(SetBucketWebsiteConfigurationRequest setBucketWebsiteConfigurationRequest)
Sets the website configuration for the specified bucket.
|
void |
COSClient.setBucketWebsiteConfiguration(String bucketName,
BucketWebsiteConfiguration configuration) |
void |
COS.setBucketWebsiteConfiguration(String bucketName,
BucketWebsiteConfiguration configuration)
Sets the website configuration for the specified bucket.
|
void |
COSClient.setObjectAcl(SetObjectAclRequest setObjectAclRequest) |
void |
COS.setObjectAcl(SetObjectAclRequest setObjectAclRequest)
Sets the
AccessControlList for the specified object. |
void |
COSClient.setObjectAcl(String bucketName,
String key,
AccessControlList acl) |
void |
COS.setObjectAcl(String bucketName,
String key,
AccessControlList acl)
Sets the
CannedAccessControlList for the specified object. |
void |
COSClient.setObjectAcl(String bucketName,
String key,
CannedAccessControlList acl) |
void |
COS.setObjectAcl(String bucketName,
String key,
CannedAccessControlList acl)
Sets the
CannedAccessControlList for the specified object. |
void |
COSClient.updateObjectMetaData(String bucketName,
String key,
ObjectMetadata objectMetadata) |
void |
COS.updateObjectMetaData(String bucketName,
String key,
ObjectMetadata objectMetadata)
update the object meta.
|
protected <UploadObjectRequest extends PutObjectRequest> |
COSClient.uploadObjectInternal(UploadMode uploadMode,
UploadObjectRequest uploadObjectRequest) |
UploadPartResult |
COSClient.uploadPart(UploadPartRequest uploadPartRequest) |
UploadPartResult |
COS.uploadPart(UploadPartRequest uploadPartRequest)
Uploads a part in a multipart upload.
|
UploadPartResult |
COSEncryptionClient.uploadPart(UploadPartRequest uploadPartRequest)
Uploads a part in a multipart upload.
|
限定符和类型 | 方法和说明 |
---|---|
COSCredentials |
COSCredentialsFetcher.fetch() |
COSCredentials |
HttpCredentialsFetcher.fetch() |
COSCredentials |
COSCredentialsFetcher.fetch(int retryTimes) |
COSCredentials |
HttpCredentialsFetcher.fetch(int retryTimes) |
COSCredentials |
InstanceCredentialsFetcher.parse(String credentialsResponse) |
abstract COSCredentials |
HttpCredentialsFetcher.parse(String credentialsResponse) |
限定符和类型 | 类和说明 |
---|---|
class |
AbortedException
SDK operation aborted exception.
|
class |
CosServiceException
Extension of CosClientException that represents an error response returned by an Tencent Qcloud
Cos.
|
class |
FileLockException |
class |
MultiObjectDeleteException |
class |
PauseException |
class |
ResponseNotCompleteException |
class |
SelectObjectContentEventException
An exception generated when COS has received and started request processing, but something goes wrong after it has
started
returning
SelectObjectContentEvent s. |
限定符和类型 | 方法和说明 |
---|---|
<X,Y extends CosServiceRequest> |
CosHttpClient.exeute(CosHttpRequest<Y> request,
HttpResponseHandler<CosServiceResponse<X>> responseHandler) |
<X,Y extends CosServiceRequest> |
DefaultCosHttpClient.exeute(CosHttpRequest<Y> request,
HttpResponseHandler<CosServiceResponse<X>> responseHandler) |
限定符和类型 | 方法和说明 |
---|---|
byte[] |
MultiObjectDeleteXmlFactory.convertToXmlByteArray(DeleteObjectsRequest rq)
Converts the specified
DeleteObjectsRequest object to an XML fragment that
can be sent to Qcloud COS. |
static byte[] |
RequestXmlFactory.convertToXmlByteArray(MediaWorkflowRequest request)
Converts the MediaWorkflowRequest to an XML fragment that can be sent to the RestoreObject
operation of COS.
|
static byte[] |
RequestXmlFactory.convertToXmlByteArray(RestoreObjectRequest restoreObjectRequest)
Converts the RestoreObjectRequest to an XML fragment that can be sent to the RestoreObject
operation of COS.
|
CopyResult |
CopyImpl.waitForCopyResult()
Waits for this copy operation to complete and returns the result of the
operation.
|
构造器和说明 |
---|
XmlResponsesSaxParser()
Constructs the XML SAX parser.
|
限定符和类型 | 方法和说明 |
---|---|
CompleteMultipartUploadResult |
CryptoModuleDispatcher.completeMultipartUploadSecurely(CompleteMultipartUploadRequest req) |
InitiateMultipartUploadResult |
CryptoModuleDispatcher.initiateMultipartUploadSecurely(InitiateMultipartUploadRequest req) |
UploadPartResult |
CryptoModuleDispatcher.uploadPartSecurely(UploadPartRequest req)
NOTE: Because the encryption process requires context from block N-1 in order to
encrypt block N, parts uploaded with the COSEncryptionClient (as opposed to the normal
COSClient) must be uploaded serially, and in order.
|
限定符和类型 | 方法和说明 |
---|---|
protected XmlWriter |
AclXmlFactory.convertToXml(Grantee grantee,
XmlWriter xml)
Returns an XML fragment representing the specified Grantee.
|
byte[] |
AclXmlFactory.convertToXmlByteArray(AccessControlList acl)
Converts the specified AccessControlList object to an XML fragment that can be sent to COS.
|
byte[] |
BucketConfigurationXmlFactory.convertToXmlByteArray(BucketCrossOriginConfiguration config)
Converts the specified
BucketCrossOriginConfiguration object to an XML fragment that
can be sent to Qcloud COS. |
byte[] |
BucketConfigurationXmlFactory.convertToXmlByteArray(BucketIntelligentTierConfiguration configuration) |
byte[] |
BucketConfigurationXmlFactory.convertToXmlByteArray(BucketLifecycleConfiguration config) |
byte[] |
BucketConfigurationXmlFactory.convertToXmlByteArray(BucketPutDomainCertificate domainCertificate) |
byte[] |
BucketConfigurationXmlFactory.convertToXmlByteArray(BucketTaggingConfiguration config) |
byte[] |
BucketConfigurationXmlFactory.convertToXmlByteArray(InventoryConfiguration config) |
限定符和类型 | 方法和说明 |
---|---|
static String |
Region.formatCIRegion(Region region) |
static String |
Region.formatCIRegion(String regionName) |
static String |
Region.formatRegion(Region region) |
static String |
Region.formatRegion(String regionName) |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
RetryUtils.isRetryableClientException(CosClientException exception)
Returns true if the specified exception is a retryable service side exception.
|
限定符和类型 | 方法和说明 |
---|---|
protected CosClientException |
AbstractTransfer.unwrapExecutionException(ExecutionException e)
Unwraps the root exception that caused the specified ExecutionException
and returns it.
|
CosClientException |
Transfer.waitForException()
Waits for this transfer to finish and returns any error that occurred, or returns
null if no errors occurred. |
CosClientException |
AbstractTransfer.waitForException()
Waits for this transfer to finish and returns any error that occurred, or
returns
null if no errors occurred. |
限定符和类型 | 方法和说明 |
---|---|
void |
TransferManager.abortMultipartUploads(String bucketName,
Date date)
Aborts any multipart uploads that were initiated before the specified date.
|
Copy |
TransferManager.copy(CopyObjectRequest copyObjectRequest,
COS srcCOS,
TransferStateChangeListener stateChangeListener)
Schedules a new transfer to copy data from one object to another .
|
Copy |
TransferManager.copy(CopyObjectRequest copyObjectRequest,
TransferStateChangeListener stateChangeListener)
Schedules a new transfer to copy data from one object to another .
|
Copy |
TransferManager.copy(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey)
Schedules a new transfer to copy data.
|
Upload |
TransferManager.upload(PutObjectRequest putObjectRequest)
Schedules a new transfer to upload data to Qcloud COS.
|
Upload |
TransferManager.upload(PutObjectRequest putObjectRequest,
COSProgressListener progressListener)
Schedules a new transfer to upload data to Qcloud COS.
|
Upload |
TransferManager.upload(String bucketName,
String key,
File file)
Schedules a new transfer to upload data to Qcloud COS.
|
Upload |
TransferManager.upload(String bucketName,
String key,
InputStream input,
ObjectMetadata objectMetadata)
Schedules a new transfer to upload data to Qcloud COS.
|
void |
Transfer.waitForCompletion()
Waits for this transfer to complete.
|
void |
MultipleImageAuditingImpl.waitForCompletion()
Waits for this transfer to complete.
|
void |
MultipleFileUploadImpl.waitForCompletion()
Waits for this transfer to complete.
|
void |
MultipleFileDownloadImpl.waitForCompletion()
Waits for this transfer to complete.
|
void |
AbstractTransfer.waitForCompletion()
Waits for this transfer to complete.
|
CopyResult |
Copy.waitForCopyResult()
Waits for the copy request to complete and returns the result of this
request.
|
UploadResult |
UploadImpl.waitForUploadResult()
Waits for this upload to complete and returns the result of this upload.
|
UploadResult |
Upload.waitForUploadResult()
Waits for this upload to complete and returns the result of this upload.
|
限定符和类型 | 方法和说明 |
---|---|
static CosClientException |
ExceptionUtils.createClientException(IOException ex) |
Copyright © 2022. All rights reserved.