Package com.emc.object.s3.request
Class PresignedUrlRequest
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.PresignedUrlRequest
-
public class PresignedUrlRequest extends S3ObjectRequest
-
-
Constructor Summary
Constructors Constructor Description PresignedUrlRequest(Method method, java.lang.String bucketName, java.lang.String key, java.util.Date expirationTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getExpirationTime()
java.util.Map<ResponseHeaderOverride,java.lang.String>
getHeaderOverrides()
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.Method
getMethod()
S3ObjectMetadata
getObjectMetadata()
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()
PresignedUrlRequest
headerOverride(ResponseHeaderOverride override, java.lang.String value)
void
setHeaderOverrides(java.util.Map<ResponseHeaderOverride,java.lang.String> headerOverrides)
void
setMethod(Method method)
void
setObjectMetadata(S3ObjectMetadata objectMetadata)
void
setVersionId(java.lang.String versionId)
PresignedUrlRequest
withMethod(Method method)
PresignedUrlRequest
withObjectMetadata(S3ObjectMetadata objectMetadata)
PresignedUrlRequest
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, getNamespace, getPath, getProperties, getQueryString, getRawQueryString, getSubresource, property, setNamespace, setPath
-
-
-
-
Constructor Detail
-
PresignedUrlRequest
public PresignedUrlRequest(Method method, java.lang.String bucketName, java.lang.String key, java.util.Date expirationTime)
-
-
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
-
getExpirationTime
public java.util.Date getExpirationTime()
-
getMethod
public Method getMethod()
- Overrides:
getMethod
in classObjectRequest
-
getVersionId
public java.lang.String getVersionId()
-
setMethod
public void setMethod(Method method)
-
setVersionId
public void setVersionId(java.lang.String versionId)
-
getObjectMetadata
public S3ObjectMetadata getObjectMetadata()
-
setObjectMetadata
public void setObjectMetadata(S3ObjectMetadata objectMetadata)
-
getHeaderOverrides
public java.util.Map<ResponseHeaderOverride,java.lang.String> getHeaderOverrides()
-
setHeaderOverrides
public void setHeaderOverrides(java.util.Map<ResponseHeaderOverride,java.lang.String> headerOverrides)
-
withMethod
public PresignedUrlRequest withMethod(Method method)
-
withVersionId
public PresignedUrlRequest withVersionId(java.lang.String versionId)
-
withObjectMetadata
public PresignedUrlRequest withObjectMetadata(S3ObjectMetadata objectMetadata)
-
headerOverride
public PresignedUrlRequest headerOverride(ResponseHeaderOverride override, java.lang.String value)
-
-