Package com.emc.object.s3.request
Class PutObjectRequest
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.PutObjectRequest
-
- All Implemented Interfaces:
EntityRequest
public class PutObjectRequest extends S3ObjectRequest implements EntityRequest
-
-
Constructor Summary
Constructors Constructor Description PutObjectRequest(PutObjectRequest other)
PutObjectRequest(java.lang.String bucketName, java.lang.String key, java.lang.Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AccessControlList
getAcl()
CannedAcl
getCannedAcl()
java.lang.Long
getContentLength()
java.lang.String
getContentType()
java.lang.Object
getEntity()
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
getIfModifiedSince()
java.lang.String
getIfNoneMatch()
java.util.Date
getIfUnmodifiedSince()
java.lang.Object
getObject()
S3ObjectMetadata
getObjectMetadata()
ObjectTagging
getObjectTagging()
Range
getRange()
java.lang.Long
getRetentionPeriod()
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.getRetentionPeriod
in preference to this one.java.lang.String
getRetentionPolicy()
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.getRetentionPolicy
in preference to this one.boolean
isChunkable()
void
setAcl(AccessControlList acl)
void
setCannedAcl(CannedAcl cannedAcl)
void
setIfMatch(java.lang.String ifMatch)
void
setIfModifiedSince(java.util.Date ifModifiedSince)
void
setIfNoneMatch(java.lang.String ifNoneMatch)
void
setIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
void
setObjectMetadata(S3ObjectMetadata objectMetadata)
void
setObjectTagging(ObjectTagging objectTagging)
void
setRange(Range range)
void
setRetentionPeriod(java.lang.Long retentionPeriod)
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.setRetentionPeriod
in preference to this one.void
setRetentionPolicy(java.lang.String retentionPolicy)
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.setRetentionPolicy
in preference to this one.PutObjectRequest
withAcl(AccessControlList acl)
PutObjectRequest
withCannedAcl(CannedAcl cannedAcl)
PutObjectRequest
withIfMatch(java.lang.String ifMatch)
PutObjectRequest
withIfModifiedSince(java.util.Date ifModifiedSince)
PutObjectRequest
withIfNoneMatch(java.lang.String ifNoneMatch)
PutObjectRequest
withIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
PutObjectRequest
withObjectMetadata(S3ObjectMetadata objectMetadata)
PutObjectRequest
withObjectTagging(ObjectTagging objectTagging)
PutObjectRequest
withRange(Range range)
PutObjectRequest
withRetentionPeriod(long retentionPeriod)
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.setRetentionPeriod
in preference to this one.PutObjectRequest
withRetentionPolicy(java.lang.String retentionPolicy)
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.setRetentionPolicy
in preference to this one.-
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, getQueryParams, getQueryString, getRawQueryString, getSubresource, property, setNamespace, setPath
-
-
-
-
Constructor Detail
-
PutObjectRequest
public PutObjectRequest(java.lang.String bucketName, java.lang.String key, java.lang.Object object)
-
PutObjectRequest
public PutObjectRequest(PutObjectRequest other)
-
-
Method Detail
-
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
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntity
in interfaceEntityRequest
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceEntityRequest
-
getContentLength
public java.lang.Long getContentLength()
- Specified by:
getContentLength
in interfaceEntityRequest
-
isChunkable
public boolean isChunkable()
- Specified by:
isChunkable
in interfaceEntityRequest
-
getObjectMetadata
public S3ObjectMetadata getObjectMetadata()
-
setObjectMetadata
public void setObjectMetadata(S3ObjectMetadata objectMetadata)
-
getObject
public java.lang.Object getObject()
-
getRange
public Range getRange()
-
setRange
public void setRange(Range range)
-
getIfModifiedSince
public java.util.Date getIfModifiedSince()
-
setIfModifiedSince
public void setIfModifiedSince(java.util.Date ifModifiedSince)
-
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)
-
getIfNoneMatch
public java.lang.String getIfNoneMatch()
-
setIfNoneMatch
public void setIfNoneMatch(java.lang.String ifNoneMatch)
-
getAcl
public AccessControlList getAcl()
-
setAcl
public void setAcl(AccessControlList acl)
-
getCannedAcl
public CannedAcl getCannedAcl()
-
setCannedAcl
public void setCannedAcl(CannedAcl cannedAcl)
-
getRetentionPeriod
@Deprecated public java.lang.Long getRetentionPeriod()
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.getRetentionPeriod
in preference to this one.- Returns:
- The retention period in seconds.
-
setRetentionPeriod
@Deprecated public void setRetentionPeriod(java.lang.Long retentionPeriod)
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.setRetentionPeriod
in preference to this one.Sets the retention (read-only) period for the object in seconds (afterretentionPeriod
seconds, you can modify or delete the object)
-
getRetentionPolicy
@Deprecated public java.lang.String getRetentionPolicy()
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.getRetentionPolicy
in preference to this one.- Returns:
- The retention policy name.
-
setRetentionPolicy
@Deprecated public void setRetentionPolicy(java.lang.String retentionPolicy)
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.setRetentionPolicy
in preference to this one.Sets the name of the retention policy to apply to the object. Retention policies are defined within each namespace
-
getObjectTagging
public ObjectTagging getObjectTagging()
-
setObjectTagging
public void setObjectTagging(ObjectTagging objectTagging)
-
withObjectMetadata
public PutObjectRequest withObjectMetadata(S3ObjectMetadata objectMetadata)
-
withRange
public PutObjectRequest withRange(Range range)
-
withIfModifiedSince
public PutObjectRequest withIfModifiedSince(java.util.Date ifModifiedSince)
-
withIfUnmodifiedSince
public PutObjectRequest withIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
-
withIfMatch
public PutObjectRequest withIfMatch(java.lang.String ifMatch)
-
withIfNoneMatch
public PutObjectRequest withIfNoneMatch(java.lang.String ifNoneMatch)
-
withAcl
public PutObjectRequest withAcl(AccessControlList acl)
-
withCannedAcl
public PutObjectRequest withCannedAcl(CannedAcl cannedAcl)
-
withRetentionPeriod
@Deprecated public PutObjectRequest withRetentionPeriod(long retentionPeriod)
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.setRetentionPeriod
in preference to this one.Convenience method.- Parameters:
retentionPeriod
-- Returns:
- The request.
-
withRetentionPolicy
@Deprecated public PutObjectRequest withRetentionPolicy(java.lang.String retentionPolicy)
Deprecated.Use the methodcom.emc.object.s3.S3ObjectMetadata.setRetentionPolicy
in preference to this one.Convenience method.- Parameters:
retentionPolicy
-- Returns:
- The request.
-
withObjectTagging
public PutObjectRequest withObjectTagging(ObjectTagging objectTagging)
-
-