public class GetObjectRequest extends GetObjectMetadataRequest
sseCHeader, versionId
encodeHeaders, objectKey
bucketName, httpMethod, userHeaders
Constructor and Description |
---|
GetObjectRequest() |
GetObjectRequest(String bucketName,
String objectKey)
Constructor
|
GetObjectRequest(String bucketName,
String objectKey,
String versionId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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, setObjectKey
addUserHeaders, getBucketName, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders
public 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
in class GetObjectMetadataRequest
public void setSseCHeader(SseCHeader sseCHeader)
setSseCHeader
in class GetObjectMetadataRequest
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 getVersionId()
getVersionId
in class GetObjectMetadataRequest
public void setVersionId(String versionId)
setVersionId
in class GetObjectMetadataRequest
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()
okhttp3.internal.http.BridgeInterceptor
public void setAutoUnzipResponse(boolean autoUnzipResponse)
autoUnzipResponse
- okhttp3.internal.http.BridgeInterceptor
public void setIsEncodeHeaders(boolean encodeHeaders)
setIsEncodeHeaders
in class BaseObjectRequest
encodeHeaders
- Specifies whether to encode and decode header fields.public boolean isEncodeHeaders()
isEncodeHeaders
in class BaseObjectRequest
public String toString()
toString
in class GetObjectMetadataRequest
Copyright © 2021. All rights reserved.