public final class AbortMultiUploadRequest extends BaseMultipartUploadRequest
CosXmlRequest.OnRequestWeightListener
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
AbortMultiUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String uploadId)
舍弃一个分块上传且删除已上传的分片块构造方法
|
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
java.util.Map<java.lang.String,java.lang.String> |
getQueryString()
获取url query集合
|
RequestBodySerializer |
getRequestBody()
获取请求体
|
java.lang.String |
getUploadId()
获取设置的分片上传的uploadId
|
void |
setUploadId(java.lang.String uploadId)
舍弃一个上传分块且删除已上传的分块,需要指定是那个分块上传对象的uploadId.
|
getSTSCredentialScope
getContentType, getCosPath, getPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getRegion, 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, xmlBuilder
public AbortMultiUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String uploadId)
bucket
- 存储桶名称(cos v5 的 bucket格式为:xxx-appid, 如 bucket-1250000000)cosPath
- 远端路径,即存储到 COS 上的绝对路径uploadId
- 初始化分片返回的 uploadIdpublic java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
CosXmlRequest.getMethod()
public java.util.Map<java.lang.String,java.lang.String> getQueryString()
CosXmlRequest
getQueryString
在类中 CosXmlRequest
CosXmlRequest.getQueryString()
public RequestBodySerializer getRequestBody()
CosXmlRequest
getRequestBody
在类中 CosXmlRequest
CosXmlRequest.getRequestBody()
public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 ObjectRequest
CosXmlClientException
- cosXmlClientExceptionCosXmlRequest.checkParameters()
public void setUploadId(java.lang.String uploadId)
uploadId
- 设置分片上传的uploadIdpublic java.lang.String getUploadId()