public class GetObjectRequest extends GetObjectMetadataRequest
sseCHeader, versionIdencodeHeaders, isIgnorePort, objectKeybucketName, cancelHandler, httpMethod, userHeaders| 构造器 | 说明 |
|---|---|
GetObjectRequest() |
|
GetObjectRequest(String bucketName,
String objectKey) |
Constructor
|
GetObjectRequest(String bucketName,
String objectKey,
String versionId) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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.
|
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.
|
boolean |
isEncodeHeaders() |
Specifies whether to encode and decode the returned header fields.
|
void |
setAutoUnzipResponse(boolean autoUnzipResponse) |
Set the response to whether to automatically decompress the object compressed using gzip.
|
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 |
setIsEncodeHeaders(boolean encodeHeaders) |
Specifies whether to encode and decode the returned header fields.
|
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() |
getObjectKey, setObjectKeygetIsIgnorePort, setIsIgnorePortaddUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaderspublic 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()
getSseCHeader 在类中 GetObjectMetadataRequestpublic void setSseCHeader(SseCHeader sseCHeader)
setSseCHeader 在类中 GetObjectMetadataRequestsseCHeader - 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 getVersionId()
getVersionId 在类中 GetObjectMetadataRequestpublic void setVersionId(String versionId)
setVersionId 在类中 GetObjectMetadataRequestversionId - 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 void setIsEncodeHeaders(boolean encodeHeaders)
setIsEncodeHeaders 在类中 BaseObjectRequestencodeHeaders - Specifies whether to encode and decode header fields.public boolean isEncodeHeaders()
isEncodeHeaders 在类中 BaseObjectRequestpublic String toString()
toString 在类中 GetObjectMetadataRequestCopyright © 2025. All rights reserved.