类 DeleteObjectsRequest
java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.DeleteObjectsRequest
Parameters in an object batch deletion request
-
字段概要
从类继承的字段 com.obs.services.model.GenericRequest
bucketName, cancelHandler, httpMethod, userHeaders -
构造器概要
构造器构造器说明DeleteObjectsRequest(String bucketName) ConstructorDeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions) ConstructorDeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions, String encodingType) Constructor -
方法概要
修饰符和类型方法说明addKeyAndVersion(String objectKey) Add an object to be deleted.addKeyAndVersion(String objectKey, String versionId) Add an object to be deleted.Get the encoding type that used for encode objectkeyObtain the to-be-deleted object array.Obtain the list of to-be-deleted objects.booleanisQuiet()Obtain the response mode of the batch deletion.voidsetEncodingType(String encodingType) Set the encoding type that used for encode objectkeyvoidsetKeyAndVersions(KeyAndVersion[] keyAndVersions) Specify the to-be-deleted object array.voidsetQuiet(boolean quiet) Set the response mode for the batch deletion.toString()从类继承的方法 com.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaders
-
构造器详细资料
-
DeleteObjectsRequest
public DeleteObjectsRequest() -
DeleteObjectsRequest
-
DeleteObjectsRequest
Constructor- 参数:
bucketName- Bucket namequiet- Deletion response mode. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.keyAndVersions- To-be-deleted object array
-
DeleteObjectsRequest
public DeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions, String encodingType) Constructor- 参数:
bucketName- Bucket namequiet- Deletion response mode. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.keyAndVersions- To-be-deleted object arrayencodingType- The encoding type use for encode objectKey.
-
-
方法详细资料
-
isQuiet
public boolean isQuiet()Obtain the response mode of the batch deletion. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.- 返回:
- Response mode of the object batch deletion request
-
setQuiet
public void setQuiet(boolean quiet) Set the response mode for the batch deletion. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.- 参数:
quiet- Response mode of the object batch deletion request
-
setEncodingType
Set the encoding type that used for encode objectkey- 参数:
encodingType- could chose url.
-
getEncodingType
Get the encoding type that used for encode objectkey- 返回:
- encodingType
-
getKeyAndVersionsList
Obtain the list of to-be-deleted objects.- 返回:
- List of to-be-deleted objects
-
addKeyAndVersion
Add an object to be deleted.- 参数:
objectKey- Object nameversionId- Version ID of the object- 返回:
- Object newly added to the deletion list
-
addKeyAndVersion
Add an object to be deleted.- 参数:
objectKey- Object name- 返回:
- Object newly added to the deletion list
-
getKeyAndVersions
Obtain the to-be-deleted object array.- 返回:
- To-be-deleted object array
-
setKeyAndVersions
Specify the to-be-deleted object array.- 参数:
keyAndVersions- To-be-deleted object array
-
toString
- 覆盖:
toString在类中GenericRequest
-