Package com.emc.object.s3.request
Class SetObjectLegalHoldRequest
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.SetObjectLegalHoldRequest
-
- All Implemented Interfaces:
EntityRequest
public class SetObjectLegalHoldRequest extends S3ObjectRequest implements EntityRequest
-
-
Constructor Summary
Constructors Constructor Description SetObjectLegalHoldRequest(java.lang.String bucketName, java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getContentLength()
java.lang.String
getContentType()
java.lang.Object
getEntity()
ObjectLockLegalHold
getLegalHold()
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()
boolean
isChunkable()
void
setLegalHold(ObjectLockLegalHold legalHold)
void
setVersionId(java.lang.String versionId)
SetObjectLegalHoldRequest
withLegalHold(ObjectLockLegalHold legalHold)
SetObjectLegalHoldRequest
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, getHeaders, 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
-
getContentLength
public java.lang.Long getContentLength()
- Specified by:
getContentLength
in interfaceEntityRequest
-
isChunkable
public boolean isChunkable()
- Specified by:
isChunkable
in interfaceEntityRequest
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntity
in interfaceEntityRequest
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceEntityRequest
-
getLegalHold
public ObjectLockLegalHold getLegalHold()
-
setLegalHold
public void setLegalHold(ObjectLockLegalHold legalHold)
-
withLegalHold
public SetObjectLegalHoldRequest withLegalHold(ObjectLockLegalHold legalHold)
-
getVersionId
public java.lang.String getVersionId()
-
setVersionId
public void setVersionId(java.lang.String versionId)
-
withVersionId
public SetObjectLegalHoldRequest withVersionId(java.lang.String versionId)
-
-