public class CosXmlSimpleService extends CosXmlBaseService implements SimpleCosXml
CosXmlService
]
更详细的使用方式请参考:入门文档
appCachePath, BRIDGE, client, config, credentialProvider, IS_CLOSE_BEACON, requestDomain, selfSigner, signerType, tag
构造器和说明 |
---|
CosXmlSimpleService(android.content.Context context,
CosXmlServiceConfig configuration) |
CosXmlSimpleService(android.content.Context context,
CosXmlServiceConfig configuration,
QCloudCredentialProvider qCloudCredentialProvider) |
CosXmlSimpleService(android.content.Context context,
CosXmlServiceConfig configuration,
QCloudSelfSigner selfSigner) |
CosXmlSimpleService(android.content.Context context,
CosXmlServiceConfig configuration,
QCloudSigner qCloudSigner) |
addCustomerDNS, addCustomerDNSFetch, addVerifiedHost, basePutObject, basePutObjectAsync, buildHttpRequest, buildHttpRequestBodyConverter, cancel, cancelAll, execute, getAccessUrl, getAppid, getConfig, getCredentialProvider, getLogFiles, getObject, getObject, getObjectAsync, getObjectUrl, getPresignedURL, getRegion, getRegion, getRequestHost, release, schedule, setDomain, setNetworkClient, signerTypeCompat, uploadPart, uploadPartAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
basePutObject, basePutObjectAsync, cancel, cancelAll, getObject, getObject, getObjectAsync, getObjectUrl, release, uploadPart, uploadPartAsync
public CosXmlSimpleService(android.content.Context context, CosXmlServiceConfig configuration, QCloudCredentialProvider qCloudCredentialProvider)
public CosXmlSimpleService(android.content.Context context, CosXmlServiceConfig configuration)
public CosXmlSimpleService(android.content.Context context, CosXmlServiceConfig configuration, QCloudSigner qCloudSigner)
public CosXmlSimpleService(android.content.Context context, CosXmlServiceConfig configuration, QCloudSelfSigner selfSigner)
protected <T1 extends CosXmlRequest> void setCopySource(T1 cosXmlRequest) throws CosXmlClientException
setCopySource
在类中 CosXmlBaseService
CosXmlClientException
protected <T1 extends CosXmlRequest,T2 extends CosXmlResult> void setProgressListener(T1 cosXmlRequest, HttpTask<T2> httpTask, boolean isSchedule)
setProgressListener
在类中 CosXmlBaseService
public PutObjectResult putObject(PutObjectRequest request) throws CosXmlClientException, CosXmlServiceException
简单上传的同步方法.
详细介绍,请查看:SimpleCosXml.putObject(PutObjectRequest)
putObject
在接口中 SimpleCosXml
request
- 简单上传请求 PutObjectRequest
PutObjectResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void putObjectAsync(PutObjectRequest request, CosXmlResultListener cosXmlResultListener)
简单上传的异步方法.
详细介绍,请查看:SimpleCosXml.putObjectAsync(PutObjectRequest, CosXmlResultListener)
putObjectAsync
在接口中 SimpleCosXml
request
- 简单上传请求 PutObjectRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public PostObjectResult postObject(PostObjectRequest request) throws CosXmlClientException, CosXmlServiceException
以网页表单的形式上传文件的同步方法.
详细介绍,请查看:SimpleCosXml.postObject(PostObjectRequest)
postObject
在接口中 SimpleCosXml
request
- 简单上传请求 PutObjectRequest
PutObjectResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void postObjectAsync(PostObjectRequest request, CosXmlResultListener cosXmlResultListener)
以网页表单的形式上传文件的异步方法.
详细介绍,请查看:SimpleCosXml.postObjectAsync(PostObjectRequest, CosXmlResultListener)
postObjectAsync
在接口中 SimpleCosXml
request
- 简单上传请求 PutObjectRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public DeleteObjectResult deleteObject(DeleteObjectRequest request) throws CosXmlClientException, CosXmlServiceException
删除 COS 上单个对象的同步方法.
详细介绍,请查看:SimpleCosXml.deleteObject(DeleteObjectRequest)
deleteObject
在接口中 SimpleCosXml
request
- 删除 COS 上单个对象请求 DeleteObjectRequest
DeleteObjectResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void deleteObjectAsync(DeleteObjectRequest request, CosXmlResultListener cosXmlResultListener)
删除 COS 上单个对象的异步方法.
详细介绍,请查看:SimpleCosXml.deleteObjectAsync(DeleteObjectRequest, CosXmlResultListener)
deleteObjectAsync
在接口中 SimpleCosXml
request
- 删除 COS 上单个对象请求 DeleteObjectRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public HeadObjectResult headObject(HeadObjectRequest request) throws CosXmlClientException, CosXmlServiceException
获取 COS 对象的元数据的同步方法.
详细介绍,请查看:SimpleCosXml.headObject(HeadObjectRequest)
headObject
在接口中 SimpleCosXml
request
- 获取 COS 对象的元数据信息请求 HeadObjectRequest
HeadObjectResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void headObjectAsync(HeadObjectRequest request, CosXmlResultListener cosXmlResultListener)
获取 COS 对象的元数据的异步方法.
详细介绍,请查看:SimpleCosXml.headObjectAsync(HeadObjectRequest, CosXmlResultListener)
headObjectAsync
在接口中 SimpleCosXml
request
- 获取 COS 对象的元数据信息请求 HeadObjectRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public CopyObjectResult copyObject(CopyObjectRequest request) throws CosXmlClientException, CosXmlServiceException
拷贝对象的同步方法.
详细介绍,请查看:SimpleCosXml.copyObject(CopyObjectRequest)
copyObject
在接口中 SimpleCosXml
request
- 简单复制对象请求 CopyObjectRequest
CopyObjectResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void copyObjectAsync(CopyObjectRequest request, CosXmlResultListener cosXmlResultListener)
拷贝对象的异步方法.
详细介绍,请查看:SimpleCosXml.copyObjectAsync(CopyObjectRequest, CosXmlResultListener)
copyObjectAsync
在接口中 SimpleCosXml
request
- 简单复制对象请求 CopyObjectRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public UploadPartCopyResult copyObject(UploadPartCopyRequest request) throws CosXmlClientException, CosXmlServiceException
拷贝对象的同步方法.
详细介绍,请查看:SimpleCosXml.copyObject(UploadPartCopyRequest)
copyObject
在接口中 SimpleCosXml
request
- 分块复制请求 UploadPartCopyRequest
UploadPartCopyResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void copyObjectAsync(UploadPartCopyRequest request, CosXmlResultListener cosXmlResultListener)
拷贝对象的异步方法.
详细介绍,请查看:SimpleCosXml.copyObjectAsync(UploadPartCopyRequest, CosXmlResultListener)
copyObjectAsync
在接口中 SimpleCosXml
request
- 分块复制请求 UploadPartCopyRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public InitMultipartUploadResult initMultipartUpload(InitMultipartUploadRequest request) throws CosXmlClientException, CosXmlServiceException
初始化分块上传的同步方法.
详细介绍,请查看:SimpleCosXml.initMultipartUpload(InitMultipartUploadRequest)
initMultipartUpload
在接口中 SimpleCosXml
request
- 初始化分块上传请求 InitMultipartUploadRequest
InitMultipartUploadResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void initMultipartUploadAsync(InitMultipartUploadRequest request, CosXmlResultListener cosXmlResultListener)
初始化分块上传的异步方法.
详细介绍,请查看:SimpleCosXml.initMultipartUploadAsync(InitMultipartUploadRequest, CosXmlResultListener)
initMultipartUploadAsync
在接口中 SimpleCosXml
request
- 初始化分块上传请求 InitMultipartUploadRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public ListPartsResult listParts(ListPartsRequest request) throws CosXmlClientException, CosXmlServiceException
查询特定分块上传中的已上传的块的同步方法.
详细介绍,请查看:SimpleCosXml.listParts(ListPartsRequest)
listParts
在接口中 SimpleCosXml
request
- 查询特定分块上传中的已上传块请求 ListPartsRequest
ListPartsResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void listPartsAsync(ListPartsRequest request, CosXmlResultListener cosXmlResultListener)
查询特定分块上传中的已上传的块的异步方法.
详细介绍,请查看:SimpleCosXml.listPartsAsync(ListPartsRequest, CosXmlResultListener)
listPartsAsync
在接口中 SimpleCosXml
request
- 查询特定分块上传中已上传的块请求 ListPartsRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public AbortMultiUploadResult abortMultiUpload(AbortMultiUploadRequest request) throws CosXmlClientException, CosXmlServiceException
舍弃一个分块上传且删除已上传的分片块的同步方法.
详细介绍,请查看:SimpleCosXml.abortMultiUpload(AbortMultiUploadRequest)
abortMultiUpload
在接口中 SimpleCosXml
request
- 终止一个分块上传且删除已上传的分片块请求 AbortMultiUploadRequest
AbortMultiUploadResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void abortMultiUploadAsync(AbortMultiUploadRequest request, CosXmlResultListener cosXmlResultListener)
舍弃一个分块上传且删除已上传的分片块的异步方法.
详细介绍,请查看:SimpleCosXml.abortMultiUploadAsync(AbortMultiUploadRequest, CosXmlResultListener)
abortMultiUploadAsync
在接口中 SimpleCosXml
request
- 终止一个分块上传且删除已上传的分片块请求 AbortMultiUploadRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public CompleteMultiUploadResult completeMultiUpload(CompleteMultiUploadRequest request) throws CosXmlClientException, CosXmlServiceException
完成整个分块上传的同步方法.
详细介绍,请查看:SimpleCosXml.completeMultiUpload(CompleteMultiUploadRequest)
completeMultiUpload
在接口中 SimpleCosXml
request
- 完成整个分块上传请求 CompleteMultiUploadRequest
CompleteMultiUploadResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void completeMultiUploadAsync(CompleteMultiUploadRequest request, CosXmlResultListener cosXmlResultListener)
完成整个分块上传的异步方法.
详细介绍,请查看:SimpleCosXml.completeMultiUploadAsync(CompleteMultiUploadRequest, CosXmlResultListener)
completeMultiUploadAsync
在接口中 SimpleCosXml
request
- 初始化分片请求 CompleteMultiUploadRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener
public boolean preBuildConnection(java.lang.String bucket)
预连接的同步方法. 。
preBuildConnection
在接口中 SimpleCosXml
bucket
- bucket 名称, 如 test-1250000000public void preBuildConnectionAsync(java.lang.String bucket, CosXmlResultSimpleListener listener)
预连接的异步方法. 。
preBuildConnectionAsync
在接口中 SimpleCosXml
bucket
- bucket 名称, 如 test-1250000000listener
- 结果回调函数public ListMultiUploadsResult listMultiUploads(ListMultiUploadsRequest request) throws CosXmlClientException, CosXmlServiceException
查询存储桶(Bucket)中正在进行中的分块上传对象的同步方法.
详细介绍,请查看:SimpleCosXml.listMultiUploads(ListMultiUploadsRequest request)
listMultiUploads
在接口中 SimpleCosXml
request
- 查询 Bucket 中正在进行中的分块上传对象请求 ListMultiUploadsRequest
ListMultiUploadsResult
CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public void listMultiUploadsAsync(ListMultiUploadsRequest request, CosXmlResultListener cosXmlResultListener)
查询存储桶(Bucket)中正在进行中的分块上传对象的异步方法.
详细介绍,请查看:SimpleCosXml.listMultiUploadsAsync(ListMultiUploadsRequest request, CosXmlResultListener cosXmlResultListener)
listMultiUploadsAsync
在接口中 SimpleCosXml
request
- 查询 Bucket 中正在进行中的分块上传对象请求 ListMultiUploadsRequest
cosXmlResultListener
- 请求回调结果 CosXmlResultListener