Package com.emc.object.s3.request
Class CopyPartRequest
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.CopyObjectRequest
-
- com.emc.object.s3.request.CopyPartRequest
-
public class CopyPartRequest extends CopyObjectRequest
-
-
Constructor Summary
Constructors Constructor Description CopyPartRequest(java.lang.String sourceBucketName, java.lang.String sourceKey, java.lang.String bucketName, java.lang.String key, java.lang.String uploadId, int partNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.int
getPartNumber()
java.util.Map<java.lang.String,java.lang.String>
getQueryParams()
Override to return the request-specific query parameters based on properties of the request.Range
getSourceRange()
java.lang.String
getUploadId()
void
setSourceRange(Range sourceRange)
CopyPartRequest
withSourceRange(Range sourceRange)
CopyPartRequest
withSourceVersionId(java.lang.String sourceVersionId)
-
Methods inherited from class com.emc.object.s3.request.CopyObjectRequest
getAcl, getCannedAcl, getIfSourceMatch, getIfSourceModifiedSince, getIfSourceNoneMatch, getIfSourceUnmodifiedSince, getIfTargetMatch, getIfTargetNoneMatch, getObjectMetadata, getObjectTagging, getSourceBucketName, getSourceKey, getSourceVersionId, setAcl, setCannedAcl, setIfSourceMatch, setIfSourceModifiedSince, setIfSourceNoneMatch, setIfSourceUnmodifiedSince, setIfTargetMatch, setIfTargetNoneMatch, setObjectMetadata, setObjectTagging, setSourceVersionId, withAcl, withCannedAcl, withIfMatch, withIfModifiedSince, withIfNoneMatch, withIfUnmodifiedSince, withObjectMetadata, withObjectTagging
-
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 classCopyObjectRequest
-
getUploadId
public java.lang.String getUploadId()
-
getPartNumber
public int getPartNumber()
-
getSourceRange
public Range getSourceRange()
-
setSourceRange
public void setSourceRange(Range sourceRange)
-
withSourceRange
public CopyPartRequest withSourceRange(Range sourceRange)
-
withSourceVersionId
public CopyPartRequest withSourceVersionId(java.lang.String sourceVersionId)
- Overrides:
withSourceVersionId
in classCopyObjectRequest
-
-