Package com.emc.object.s3.request
Class UploadPartRequest
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.UploadPartRequest
-
- All Implemented Interfaces:
EntityRequest
- Direct Known Subclasses:
UploadFilePartRequest
public class UploadPartRequest extends S3ObjectRequest implements EntityRequest
-
-
Constructor Summary
Constructors Constructor Description UploadPartRequest(java.lang.String bucketName, java.lang.String key, java.lang.String uploadId, int partNumber, java.lang.Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getContentLength()
java.lang.String
getContentMd5()
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.Object
getObject()
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.java.lang.String
getUploadId()
boolean
isChunkable()
void
setContentLength(java.lang.Long contentLength)
void
setContentMd5(java.lang.String contentMd5)
void
setObject(java.lang.Object object)
UploadPartRequest
withContentLength(java.lang.Long contentLength)
UploadPartRequest
withContentMd5(java.lang.String contentMd5)
UploadPartRequest
withObject(java.lang.Object object)
-
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
-
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
-
getUploadId
public java.lang.String getUploadId()
-
getPartNumber
public int getPartNumber()
-
getObject
public java.lang.Object getObject()
-
setObject
public void setObject(java.lang.Object object)
-
setContentLength
public void setContentLength(java.lang.Long contentLength)
-
getContentMd5
public java.lang.String getContentMd5()
-
setContentMd5
public void setContentMd5(java.lang.String contentMd5)
-
withObject
public UploadPartRequest withObject(java.lang.Object object)
-
withContentLength
public UploadPartRequest withContentLength(java.lang.Long contentLength)
-
withContentMd5
public UploadPartRequest withContentMd5(java.lang.String contentMd5)
-
-