Package com.emc.object.s3.request
Class DeleteObjectRequest
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.DeleteObjectRequest
-
public class DeleteObjectRequest extends S3ObjectRequest
-
-
Constructor Summary
Constructors Constructor Description DeleteObjectRequest(java.lang.String bucketName, java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBypassGovernanceRetention()
java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
getHeaders()
Override to return request-specific headers based on properties of the request.java.lang.String
getIfMatch()
java.util.Date
getIfUnmodifiedSince()
java.util.Map<java.lang.String,java.lang.String>
getQueryParams()
Override to return the request-specific query parameters based on properties of the request.java.lang.String
getVersionId()
void
setBypassGovernanceRetention(java.lang.Boolean bypassGovernanceRetention)
void
setIfMatch(java.lang.String ifMatch)
void
setIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
void
setVersionId(java.lang.String versionId)
DeleteObjectRequest
withBypassGovernanceRetention(java.lang.Boolean bypassGovernanceRetention)
DeleteObjectRequest
withIfMatch(java.lang.String ifMatch)
DeleteObjectRequest
withIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
DeleteObjectRequest
withVersionId(java.lang.String versionId)
-
Methods inherited from class com.emc.object.s3.request.S3ObjectRequest
getKey, setKey
-
Methods inherited from class com.emc.object.s3.request.AbstractBucketRequest
getBucketName, setBucketName
-
Methods inherited from class com.emc.object.ObjectRequest
addCustomHeader, getCustomHeaders, getMethod, getNamespace, getPath, getProperties, getQueryString, getRawQueryString, getSubresource, property, setNamespace, setPath
-
-
-
-
Method Detail
-
getQueryParams
public java.util.Map<java.lang.String,java.lang.String> getQueryParams()
Description copied from class:ObjectRequest
Override to return the request-specific query parameters based on properties of the request. Do NOT include the subresource in this map; it will be inserted automatically. Note this implementation uses a TreeSet, which will sort the parameters by name. This is done to make URLs consistent for testing and should not change the semantics of any request.- Overrides:
getQueryParams
in classObjectRequest
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getHeaders()
Description copied from class:ObjectRequest
Override to return request-specific headers based on properties of the request. Always call super() first and modify the result.- Overrides:
getHeaders
in classObjectRequest
-
getVersionId
public java.lang.String getVersionId()
-
setVersionId
public void setVersionId(java.lang.String versionId)
-
getIfUnmodifiedSince
public java.util.Date getIfUnmodifiedSince()
-
setIfUnmodifiedSince
public void setIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
-
getIfMatch
public java.lang.String getIfMatch()
-
setIfMatch
public void setIfMatch(java.lang.String ifMatch)
-
getBypassGovernanceRetention
public boolean getBypassGovernanceRetention()
-
setBypassGovernanceRetention
public void setBypassGovernanceRetention(java.lang.Boolean bypassGovernanceRetention)
-
withVersionId
public DeleteObjectRequest withVersionId(java.lang.String versionId)
-
withIfUnmodifiedSince
public DeleteObjectRequest withIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
-
withIfMatch
public DeleteObjectRequest withIfMatch(java.lang.String ifMatch)
-
withBypassGovernanceRetention
public DeleteObjectRequest withBypassGovernanceRetention(java.lang.Boolean bypassGovernanceRetention)
-
-