public final class CompleteMultiUploadRequest extends BaseMultipartUploadRequest
CosXmlRequest.OnRequestWeightListener
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
CompleteMultiUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String uploadId,
java.util.Map<java.lang.Integer,java.lang.String> partNumberAndETag)
完成整个分块上传构造方法
|
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
CompleteMultipartUpload |
getCompleteMultipartUpload()
获取分块上传所有块的信息
|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
int |
getPriority()
获取请求优先级
|
java.util.Map<java.lang.String,java.lang.String> |
getQueryString()
获取url query集合
|
java.lang.String |
getUploadId()
获取用户设置的该分块上传的uploadId
|
void |
setPartNumberAndETag(int partNumbers,
java.lang.String eTag)
添加单个分块的eTag值
|
void |
setPartNumberAndETag(java.util.Map<java.lang.Integer,java.lang.String> partNumberAndETag)
添加多个分块的编号 和 eTag值
|
void |
setUploadId(java.lang.String uploadId)
设置该分块上传的uploadId
|
protected RequestBodySerializer |
xmlBuilder()
收拢xml解析
|
getSTSCredentialScope
getContentType, getCosPath, getPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getQueryEncodedString, getRegion, getRequestBody, getRequestHeaders, getRequestHost, getRequestURL, getSignSourceProvider, getWeight, headersHasUnsafeNonAscii, isNeedMD5, isSignInUrl, isSupportAccelerate, isSupportAccelerate, setNeedMD5, setOnRequestWeightListener, setQueryEncodedString, setQueryParameters, setRegion, setRequestHeaders, setRequestHeaders, setRequestHeaders, setRequestURL, setSign, setSign, setSign, setSign, setSign, setSignInUrl, setSignKeyTime, setSignParamsAndHeaders, setSignSourceProvider, setTask, setTaskStateListener
public CompleteMultiUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String uploadId, java.util.Map<java.lang.Integer,java.lang.String> partNumberAndETag)
bucket
- 存储桶名称(cos v5 的 bucket格式为:xxx-appid, 如 bucket-1250000000)cosPath
- 远端路径,即存储到 COS 上的绝对路径uploadId
- 初始化分片上传,返回的 uploadIdpartNumberAndETag
- 分片编号 和对应的分片 MD5 值public CompleteMultipartUpload getCompleteMultipartUpload()
public void setPartNumberAndETag(int partNumbers, java.lang.String eTag)
partNumbers
- 分块编号eTag
- 该分块的eTag值public void setPartNumberAndETag(java.util.Map<java.lang.Integer,java.lang.String> partNumberAndETag)
public void setUploadId(java.lang.String uploadId)
uploadId
- 分块上传的UploadIdpublic java.lang.String getUploadId()
public java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
public java.util.Map<java.lang.String,java.lang.String> getQueryString()
CosXmlRequest
getQueryString
在类中 CosXmlRequest
protected RequestBodySerializer xmlBuilder() throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
CosXmlRequest
xmlBuilder
在类中 CosXmlRequest
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 ObjectRequest
CosXmlClientException
- cosXmlClientExceptionpublic int getPriority()
CosXmlRequest
getPriority
在类中 CosXmlRequest