| 程序包 | 说明 |
|---|---|
| com.qcloud.cos | |
| com.qcloud.cos.internal | |
| com.qcloud.cos.internal.crypto | |
| com.qcloud.cos.model | |
| com.qcloud.cos.transfer |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <UploadObjectRequest extends PutObjectRequest> |
COSClient.uploadObjectInternal(UploadMode uploadMode,
UploadObjectRequest uploadObjectRequest) |
| 限定符和类型 | 方法和说明 |
|---|---|
PutObjectResult |
COS.putObject(PutObjectRequest putObjectRequest)
Uploads a new object to the specified bucket.
|
PutObjectResult |
COSClient.putObject(PutObjectRequest putObjectRequest) |
PutObjectResult |
COSEncryptionClient.putObject(PutObjectRequest req) |
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
| 构造器和说明 |
|---|
UploadPartRequestFactory(PutObjectRequest origReq,
String uploadId,
long optimalPartSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AppendObjectRequest |
class |
EncryptedPutObjectRequest |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
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 © 2022. All rights reserved.