Package com.emc.object.s3.request
Class GetObjectRequest<T extends GetObjectRequest<T>>
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.GetObjectRequest<T>
-
- Direct Known Subclasses:
GetObjectMetadataRequest
public class GetObjectRequest<T extends GetObjectRequest<T>> extends S3ObjectRequest
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GetObjectRequest(Method method, java.lang.String bucketName, java.lang.String key)
GetObjectRequest(java.lang.String bucketName, java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.lang.String
getIfMatch()
java.util.Date
getIfModifiedSince()
java.lang.String
getIfNoneMatch()
java.util.Date
getIfUnmodifiedSince()
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
getRange()
java.lang.String
getVersionId()
T
headerOverride(ResponseHeaderOverride override, java.lang.String value)
void
setHeaderOverrides(java.util.Map<ResponseHeaderOverride,java.lang.String> headerOverrides)
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
setRange(Range range)
void
setVersionId(java.lang.String versionId)
T
withIfMatch(java.lang.String ifMatch)
T
withIfModifiedSince(java.util.Date ifModifiedSince)
T
withIfNoneMatch(java.lang.String ifNoneMatch)
T
withIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
T
withRange(Range range)
T
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, getMethod, getNamespace, getPath, getProperties, getQueryString, getRawQueryString, getSubresource, property, setNamespace, setPath
-
-
-
-
Constructor Detail
-
GetObjectRequest
public GetObjectRequest(java.lang.String bucketName, java.lang.String key)
-
GetObjectRequest
protected GetObjectRequest(Method method, java.lang.String bucketName, java.lang.String key)
-
-
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
-
getVersionId
public java.lang.String getVersionId()
-
setVersionId
public void setVersionId(java.lang.String versionId)
-
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)
-
getHeaderOverrides
public java.util.Map<ResponseHeaderOverride,java.lang.String> getHeaderOverrides()
-
setHeaderOverrides
public void setHeaderOverrides(java.util.Map<ResponseHeaderOverride,java.lang.String> headerOverrides)
-
withVersionId
public T withVersionId(java.lang.String versionId)
-
withIfModifiedSince
public T withIfModifiedSince(java.util.Date ifModifiedSince)
-
withIfUnmodifiedSince
public T withIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
-
withIfMatch
public T withIfMatch(java.lang.String ifMatch)
-
withIfNoneMatch
public T withIfNoneMatch(java.lang.String ifNoneMatch)
-
headerOverride
public T headerOverride(ResponseHeaderOverride override, java.lang.String value)
-
-