public class TransferService
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected CosXmlSimpleService |
cosXmlService |
protected TransferConfig |
transferConfig |
构造器和说明 |
---|
TransferService(CosXmlSimpleService cosXmlService,
TransferConfig transferConfig)
TransferService 构造器,
|
TransferService(CosXmlSimpleService cosXmlService,
TransferConfig transferConfig,
EncryptionMaterialsProvider encryptionMaterialsProvider)
TransferService 加密传输构造器
|
限定符和类型 | 方法和说明 |
---|---|
COSDownloadTask |
download(GetObjectRequest getObjectRequest)
高级下载接口
|
COSUploadTask |
upload(PutObjectRequest putObjectRequest)
高级上传接口,
|
protected CosXmlSimpleService cosXmlService
protected TransferConfig transferConfig
public TransferService(CosXmlSimpleService cosXmlService, TransferConfig transferConfig)
cosXmlService
- CosXmlSimpleService 对象,用于真正发起传输请求transferConfig
- 传输配置类public TransferService(CosXmlSimpleService cosXmlService, TransferConfig transferConfig, EncryptionMaterialsProvider encryptionMaterialsProvider)
cosXmlService
- transferConfig
- encryptionMaterialsProvider
- public COSUploadTask upload(PutObjectRequest putObjectRequest)
putObjectRequest
- 上传请求 Request 封装类public COSDownloadTask download(GetObjectRequest getObjectRequest)
getObjectRequest
- 下载请求的 Request 封装类