public final class DeleteMultiObjectRequest extends ObjectRequest
CosXmlRequest.OnRequestWeightListener
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
DeleteMultiObjectRequest(java.lang.String bucket) |
DeleteMultiObjectRequest(java.lang.String bucket,
java.util.List<java.lang.String> deleteObjectList) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
Delete |
getDelete()
获取批量删除对象数据
|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
java.lang.String |
getPath(CosXmlServiceConfig config)
支持 CSP 的 Bucket 可能在 path 上
|
java.util.Map<java.lang.String,java.lang.String> |
getQueryString()
获取url query集合
|
STSCredentialScope[] |
getSTSCredentialScope(CosXmlServiceConfig config)
获取STS范围限制信息
|
boolean |
isNeedMD5()
针对有请求体的 PUT 和 POST 请求,此头部是必选项。
|
void |
setObjectList(java.util.List<java.lang.String> objectList)
添加多个需要删除的Objects
|
void |
setObjectList(java.util.Map<java.lang.String,java.lang.String> objectListWithVersionId)
添加多个需要删除的Objects
|
void |
setObjectList(java.lang.String object)
添加需要删除的Object
|
void |
setObjectList(java.lang.String object,
java.lang.String versionId)
添加需要删除的Object
|
void |
setQuiet(boolean quiet)
设置是否为quiet模式。
|
protected RequestBodySerializer |
xmlBuilder()
收拢xml解析
|
getContentType, getCosPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getRegion, getRequestBody, getRequestHeaders, getRequestHost, getRequestURL, getSignSourceProvider, getWeight, headersHasUnsafeNonAscii, isSignInUrl, isSupportAccelerate, isSupportAccelerate, setNeedMD5, setOnRequestWeightListener, setQueryEncodedString, setQueryParameters, setRegion, setRequestHeaders, setRequestHeaders, setRequestHeaders, setRequestURL, setSign, setSign, setSign, setSign, setSign, setSignInUrl, setSignKeyTime, setSignParamsAndHeaders, setSignSourceProvider, setTask, setTaskStateListener
public DeleteMultiObjectRequest(java.lang.String bucket, java.util.List<java.lang.String> deleteObjectList)
public DeleteMultiObjectRequest(java.lang.String bucket)
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 STSCredentialScope[] getSTSCredentialScope(CosXmlServiceConfig config)
CosXmlRequest
getSTSCredentialScope
在类中 CosXmlRequest
config
- SDK服务配置public java.lang.String getPath(CosXmlServiceConfig config)
ObjectRequest
getPath
在类中 ObjectRequest
config
- 服务配置public void setQuiet(boolean quiet)
设置是否为quiet模式。
Quiet 模式只返回报错的 Object 信息。否则返回每个 Object 的删除结果。
默认false
quiet
- 设置是否为quiet模式public void setObjectList(java.lang.String object)
object
- Object的路径public void setObjectList(java.lang.String object, java.lang.String versionId)
object
- Object的路径versionId
- Object的版本public void setObjectList(java.util.List<java.lang.String> objectList)
objectList
- Objects的路径列表public void setObjectList(java.util.Map<java.lang.String,java.lang.String> objectListWithVersionId)
objectListWithVersionId
- Objects的路径列表(包含对象版本)public boolean isNeedMD5()
CosXmlRequest
isNeedMD5
在类中 CosXmlRequest
public Delete getDelete()