| Package | Description |
|---|---|
| com.qcloud.cos | |
| com.qcloud.cos.internal | |
| com.qcloud.cos.internal.crypto | |
| com.qcloud.cos.model | |
| com.qcloud.cos.model.ciModel.utils | |
| com.qcloud.cos.transfer |
| Modifier and Type | Method and Description |
|---|---|
protected <UploadObjectRequest extends PutObjectRequest> |
COSClient.uploadObjectInternal(UploadMode uploadMode,
UploadObjectRequest uploadObjectRequest) |
| Modifier and Type | Method and Description |
|---|---|
PutObjectResult |
COS.putObject(PutObjectRequest putObjectRequest)
Uploads a new object to the specified bucket.
|
PutObjectResult |
COSClient.putObject(PutObjectRequest putObjectRequest) |
PutObjectResult |
COSEncryptionClient.putObject(PutObjectRequest req) |
| Modifier and Type | Method and Description |
|---|---|
abstract PutObjectResult |
COSDirect.putObject(PutObjectRequest req) |
PutObjectResult |
COSDirectSpi.putObject(PutObjectRequest req) |
boolean |
SkipMd5CheckStrategy.skipClientSideValidationPerRequest(PutObjectRequest request)
Determines whether the client should use the
Headers.ETAG header returned by COS to
validate the integrity of the message client side. |
boolean |
SkipMd5CheckStrategy.skipServerSideValidation(PutObjectRequest request)
Determines whether the client should calculate and send the
Headers.CONTENT_MD5
header to be validated by COS per the request. |
| Constructor and Description |
|---|
UploadPartRequestFactory(PutObjectRequest origReq,
String uploadId,
long optimalPartSize) |
| Modifier and Type | Method and Description |
|---|---|
protected PutObjectRequest |
COSCryptoModuleBase.createInstructionPutRequest(String bucketName,
String key,
com.qcloud.cos.internal.crypto.ContentCryptoMaterial cekMaterial) |
protected PutObjectRequest |
COSCryptoModuleBase.updateInstructionPutRequest(PutObjectRequest req,
com.qcloud.cos.internal.crypto.ContentCryptoMaterial cekMaterial)
Updates put request to store the specified instruction object in COS.
|
| Modifier and Type | Method and Description |
|---|---|
abstract PutObjectResult |
COSCryptoModule.putObjectSecurely(PutObjectRequest req) |
PutObjectResult |
CryptoModuleDispatcher.putObjectSecurely(PutObjectRequest putObjectRequest) |
PutObjectResult |
COSCryptoModuleBase.putObjectSecurely(PutObjectRequest req) |
protected PutObjectRequest |
COSCryptoModuleBase.updateInstructionPutRequest(PutObjectRequest req,
com.qcloud.cos.internal.crypto.ContentCryptoMaterial cekMaterial)
Updates put request to store the specified instruction object in COS.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AppendObjectRequest |
class |
EncryptedPutObjectRequest |
| Modifier and Type | Method and Description |
|---|---|
PutObjectRequest |
PutObjectRequest.clone()
Returns a clone (as deep as possible) of this request object.
|
PutObjectRequest |
PutInstructionFileRequest.createPutObjectRequest(COSObject cosObject)
Creates and returns a
PutObjectRequest for the instruction file with the specified
suffix. |
PutObjectRequest |
PutObjectRequest.withAccessControlList(AccessControlList accessControlList) |
PutObjectRequest |
PutObjectRequest.withBucketName(String bucketName) |
PutObjectRequest |
PutObjectRequest.withCannedAcl(CannedAccessControlList cannedAcl) |
PutObjectRequest |
PutObjectRequest.withFile(File file) |
PutObjectRequest |
PutObjectRequest.withInputStream(InputStream inputStream) |
PutObjectRequest |
PutObjectRequest.withKey(String key) |
PutObjectRequest |
PutObjectRequest.withMetadata(ObjectMetadata metadata) |
PutObjectRequest |
PutObjectRequest.withRedirectLocation(String redirectLocation) |
PutObjectRequest |
PutObjectRequest.withSSECOSKeyManagementParams(SSECOSKeyManagementParams sseCOSKeyManagementParams) |
PutObjectRequest |
PutObjectRequest.withSSECustomerKey(SSECustomerKey sseKey) |
PutObjectRequest |
PutObjectRequest.withStorageClass(StorageClass storageClass) |
PutObjectRequest |
PutObjectRequest.withStorageClass(String storageClass) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CICheckUtils.isCoverImageRequest(PutObjectRequest putObjectRequest)
校验是否为上传覆盖原图请求
|
| Modifier and Type | Method and Description |
|---|---|
static long |
TransferManagerUtils.calculateOptimalPartSize(PutObjectRequest putObjectRequest,
TransferManagerConfiguration configuration)
Returns the optimal part size, in bytes, for each individual part upload
in a multipart upload.
|
static UploadMonitor |
UploadMonitor.create(TransferManager manager,
UploadImpl transfer,
ExecutorService threadPool,
UploadCallable multipartUploadCallable,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain)
Constructs a new upload watcher and then immediately submits it to the thread pool.
|
static long |
TransferManagerUtils.getContentLength(PutObjectRequest putObjectRequest)
Returns the size of the data in this request, otherwise -1 if the content
length is unknown.
|
static File |
TransferManagerUtils.getRequestFile(PutObjectRequest putObjectRequest)
Convenience method for getting the file specified in a request.
|
static boolean |
TransferManagerUtils.isUploadParallelizable(PutObjectRequest putObjectRequest,
boolean isUsingEncryption)
Returns true if the specified upload request can use parallel part
uploads for increased performance.
|
static boolean |
TransferManagerUtils.shouldUseMultipartUpload(PutObjectRequest putObjectRequest,
TransferManagerConfiguration configuration)
Returns true if the the specified request should be processed as a
multipart upload (instead of a single part upload).
|
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.
|
| Constructor and Description |
|---|
CompleteMultipartUpload(String uploadId,
COS cos,
PutObjectRequest putObjectRequest,
List<Future<PartETag>> futures,
List<PartETag> eTagsBeforeResume,
ProgressListenerChain progressListenerChain,
UploadMonitor monitor) |
UploadCallable(TransferManager transferManager,
ExecutorService threadPool,
UploadImpl upload,
PutObjectRequest origReq,
ProgressListenerChain progressListenerChain,
String uploadId,
TransferProgress transferProgress) |
Copyright © 2023. All rights reserved.