public class GetObjectRequest extends GenericRequest
| 构造器和说明 |
|---|
GetObjectRequest() |
GetObjectRequest(String bucketName,
String objectKey)
Constructor
|
GetObjectRequest(String bucketName,
String objectKey,
String versionId)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBucketName()
Obtain the bucket name.
|
CacheOptionEnum |
getCacheOption()
Obtain the control option of the read-ahead cache.
|
String |
getIfMatchTag()
Obtain the ETag verification condition for downloading the object.
|
Date |
getIfModifiedSince()
Obtain the time condition set for downloading the object.
|
String |
getIfNoneMatchTag()
Obtain the ETag verification condition for downloading the object.
|
Date |
getIfUnmodifiedSince()
Obtain the time condition for downloading the object.
|
String |
getImageProcess()
Obtain image processing parameters.
|
String |
getObjectKey()
Obtain the object name.
|
long |
getProgressInterval()
Obtain the callback threshold of the data transfer listener.
|
ProgressListener |
getProgressListener()
Obtain the data transfer listener.
|
Long |
getRangeEnd()
Obtain the end position for object download.
|
Long |
getRangeStart()
Obtain the start position for object download.
|
ObjectRepleaceMetadata |
getReplaceMetadata()
Obtain the request headers that need to be rewritten during object
download.
|
Map<String,String> |
getRequestParameters() |
SseCHeader |
getSseCHeader()
Obtain SSE-C decryption headers.
|
long |
getTtl()
Obtain the cache data expiration time.
|
String |
getVersionId()
Obtain the object version ID.
|
boolean |
isAutoUnzipResponse()
Obtain the response to whether to automatically decompress the object compressed using gzip.
|
void |
setAutoUnzipResponse(boolean autoUnzipResponse)
Set the response to whether to automatically decompress the object compressed using gzip.
|
void |
setBucketName(String bucketName)
Set the bucket name.
|
void |
setCacheOption(CacheOptionEnum cacheOption)
Set the control option of the read-ahead cache.
|
void |
setIfMatchTag(String ifMatchTag)
Set the ETag verification condition for downloading the object.
|
void |
setIfModifiedSince(Date ifModifiedSince)
Set the time condition set for downloading the object.
|
void |
setIfNoneMatchTag(String ifNoneMatchTag)
Set the ETag verification condition for downloading the object.
|
void |
setIfUnmodifiedSince(Date ifUnmodifiedSince)
Set the time condition for downloading the object.
|
void |
setImageProcess(String imageProcess)
Set image processing parameters.
|
void |
setObjectKey(String objectKey)
Set the object name.
|
void |
setProgressInterval(long progressInterval)
Set the callback threshold of the data transfer listener.
|
void |
setProgressListener(ProgressListener progressListener)
Set the data transfer listener.
|
void |
setRangeEnd(Long rangeEnd)
Set the end position for object download.
|
void |
setRangeStart(Long rangeStart)
Set the start position for object download.
|
void |
setReplaceMetadata(ObjectRepleaceMetadata replaceMetadata)
Set the request headers that need to be rewritten during object download.
|
void |
setRequestParameters(Map<String,String> requestParameters) |
void |
setSseCHeader(SseCHeader sseCHeader)
Set SSE-C decryption headers.
|
void |
setTtl(long ttl)
Set the cache data expiration time.
|
void |
setVersionId(String versionId)
Set the version ID of the object.
|
String |
toString() |
isRequesterPays, setRequesterPayspublic GetObjectRequest()
public GetObjectRequest(String bucketName, String objectKey)
bucketName - Bucket nameobjectKey - Object namepublic ObjectRepleaceMetadata getReplaceMetadata()
public void setReplaceMetadata(ObjectRepleaceMetadata replaceMetadata)
replaceMetadata - Rewritten response headerspublic SseCHeader getSseCHeader()
public void setSseCHeader(SseCHeader sseCHeader)
sseCHeader - SSE-C decryption headerspublic Long getRangeStart()
public void setRangeStart(Long rangeStart)
rangeStart - Start position for object downloadpublic Long getRangeEnd()
public void setRangeEnd(Long rangeEnd)
rangeEnd - End position for object downloadpublic String getBucketName()
public void setBucketName(String bucketName)
bucketName - Bucket namepublic String getObjectKey()
public void setObjectKey(String objectKey)
objectKey - Object namepublic String getVersionId()
public void setVersionId(String versionId)
versionId - Version ID of the objectpublic Date getIfModifiedSince()
public void setIfModifiedSince(Date ifModifiedSince)
ifModifiedSince - Time condition set for downloading the objectpublic Date getIfUnmodifiedSince()
public void setIfUnmodifiedSince(Date ifUnmodifiedSince)
ifUnmodifiedSince - Time condition set for downloading the objectpublic String getIfMatchTag()
public void setIfMatchTag(String ifMatchTag)
ifMatchTag - ETag verification condition set for downloading the objectpublic String getIfNoneMatchTag()
public void setIfNoneMatchTag(String ifNoneMatchTag)
ifNoneMatchTag - ETag verification condition set for downloading the objectpublic String getImageProcess()
public void setImageProcess(String imageProcess)
imageProcess - Image processing parameterspublic ProgressListener getProgressListener()
public void setProgressListener(ProgressListener progressListener)
progressListener - Data transfer listenerpublic long getProgressInterval()
public void setProgressInterval(long progressInterval)
progressInterval - Callback threshold of the data transfer listenerpublic CacheOptionEnum getCacheOption()
public void setCacheOption(CacheOptionEnum cacheOption)
cacheOption - Control option of the read-ahead cachepublic long getTtl()
public void setTtl(long ttl)
ttl - Cache data expiration timepublic boolean isAutoUnzipResponse()
BridgeInterceptorpublic void setAutoUnzipResponse(boolean autoUnzipResponse)
autoUnzipResponse - BridgeInterceptorpublic String toString()
toString 在类中 GenericRequestCopyright © 2021. All rights reserved.