类 GetObjectRequest
java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.BaseObjectRequest
com.obs.services.model.GetObjectMetadataRequest
com.obs.services.model.GetObjectRequest
-
字段概要
从类继承的字段 com.obs.services.model.GetObjectMetadataRequest
sseCHeader, versionId从类继承的字段 com.obs.services.model.BaseObjectRequest
encodeHeaders, isIgnorePort, objectKey从类继承的字段 com.obs.services.model.GenericRequest
bucketName, cancelHandler, httpMethod, userHeaders -
构造器概要
构造器构造器说明GetObjectRequest(String bucketName, String objectKey) ConstructorGetObjectRequest(String bucketName, String objectKey, String versionId) Constructor -
方法概要
修饰符和类型方法说明Obtain the control option of the read-ahead cache.Obtain the ETag verification condition for downloading the object.Obtain the time condition set for downloading the object.Obtain the ETag verification condition for downloading the object.Obtain the time condition for downloading the object.Obtain image processing parameters.longObtain the callback threshold of the data transfer listener.Obtain the data transfer listener.Obtain the end position for object download.Obtain the start position for object download.Obtain the request headers that need to be rewritten during object download.Obtain SSE-C decryption headers.longgetTtl()Obtain the cache data expiration time.Obtain the object version ID.booleanObtain the response to whether to automatically decompress the object compressed using gzip.booleanSpecifies whether to encode and decode the returned header fields.voidsetAutoUnzipResponse(boolean autoUnzipResponse) Set the response to whether to automatically decompress the object compressed using gzip.voidsetCacheOption(CacheOptionEnum cacheOption) Set the control option of the read-ahead cache.voidsetIfMatchTag(String ifMatchTag) Set the ETag verification condition for downloading the object.voidsetIfModifiedSince(Date ifModifiedSince) Set the time condition set for downloading the object.voidsetIfNoneMatchTag(String ifNoneMatchTag) Set the ETag verification condition for downloading the object.voidsetIfUnmodifiedSince(Date ifUnmodifiedSince) Set the time condition for downloading the object.voidsetImageProcess(String imageProcess) Set image processing parameters.voidsetIsEncodeHeaders(boolean encodeHeaders) Specifies whether to encode and decode the returned header fields.voidsetProgressInterval(long progressInterval) Set the callback threshold of the data transfer listener.voidsetProgressListener(ProgressListener progressListener) Set the data transfer listener.voidsetRangeEnd(Long rangeEnd) Set the end position for object download.voidsetRangeStart(Long rangeStart) Set the start position for object download.voidsetReplaceMetadata(ObjectRepleaceMetadata replaceMetadata) Set the request headers that need to be rewritten during object download.voidsetRequestParameters(Map<String, String> requestParameters) voidsetSseCHeader(SseCHeader sseCHeader) Set SSE-C decryption headers.voidsetTtl(long ttl) Set the cache data expiration time.voidsetVersionId(String versionId) Set the version ID of the object.toString()从类继承的方法 com.obs.services.model.GetObjectMetadataRequest
getObjectKey, setObjectKey从类继承的方法 com.obs.services.model.BaseObjectRequest
getIsIgnorePort, setIsIgnorePort从类继承的方法 com.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaders
-
构造器详细资料
-
GetObjectRequest
public GetObjectRequest() -
GetObjectRequest
-
GetObjectRequest
-
-
方法详细资料
-
getReplaceMetadata
Obtain the request headers that need to be rewritten during object download.- 返回:
- Rewritten response headers
-
setReplaceMetadata
Set the request headers that need to be rewritten during object download.- 参数:
replaceMetadata- Rewritten response headers
-
getSseCHeader
Obtain SSE-C decryption headers.- 覆盖:
getSseCHeader在类中GetObjectMetadataRequest- 返回:
- SSE-C decryption headers
-
setSseCHeader
Set SSE-C decryption headers.- 覆盖:
setSseCHeader在类中GetObjectMetadataRequest- 参数:
sseCHeader- SSE-C decryption headers
-
getRangeStart
Obtain the start position for object download.- 返回:
- Start position for object download
-
setRangeStart
Set the start position for object download.- 参数:
rangeStart- Start position for object download
-
getRangeEnd
Obtain the end position for object download.- 返回:
- End position for object download
-
setRangeEnd
Set the end position for object download.- 参数:
rangeEnd- End position for object download
-
getVersionId
Obtain the object version ID.- 覆盖:
getVersionId在类中GetObjectMetadataRequest- 返回:
- Version ID of the object
-
setVersionId
Set the version ID of the object.- 覆盖:
setVersionId在类中GetObjectMetadataRequest- 参数:
versionId- Version ID of the object
-
getIfModifiedSince
Obtain the time condition set for downloading the object. Only when the object is modified after the point in time specified by this parameter, it will be downloaded. Otherwise, "304 Not Modified" will be returned.- 返回:
- Time condition set for downloading the object
-
setIfModifiedSince
Set the time condition set for downloading the object. Only when the object is modified after the point in time specified by this parameter, it will be downloaded. Otherwise, "304 Not Modified" will be returned.- 参数:
ifModifiedSince- Time condition set for downloading the object
-
getIfUnmodifiedSince
Obtain the time condition for downloading the object. Only when the object remains unchanged after the point in time specified by this parameter, it will be downloaded; otherwise, "412 Precondition Failed" will be returned.- 返回:
- Time condition set for downloading the object
-
setIfUnmodifiedSince
Set the time condition for downloading the object. Only when the object remains unchanged after the point in time specified by this parameter, it will be downloaded; otherwise, "412 Precondition Failed" will be returned.- 参数:
ifUnmodifiedSince- Time condition set for downloading the object
-
getIfMatchTag
Obtain the ETag verification condition for downloading the object. Only when the ETag of the object is the same as that specified by this parameter, the object will be downloaded. Otherwise, "412 Precondition Failed" will be returned.- 返回:
- ETag verification condition set for downloading the object
-
setIfMatchTag
Set the ETag verification condition for downloading the object. Only when the ETag of the object is the same as that specified by this parameter, the object will be downloaded. Otherwise, "412 Precondition Failed" will be returned.- 参数:
ifMatchTag- ETag verification condition set for downloading the object
-
getIfNoneMatchTag
Obtain the ETag verification condition for downloading the object. Only when the ETag of the object is different from that specified by this parameter, the object will be downloaded. Otherwise, "304 Not Modified" will be returned.- 返回:
- ETag verification condition set for downloading the object
-
setIfNoneMatchTag
Set the ETag verification condition for downloading the object. Only when the ETag of the object is different from that specified by this parameter, the object will be downloaded. Otherwise, "304 Not Modified" will be returned.- 参数:
ifNoneMatchTag- ETag verification condition set for downloading the object
-
getImageProcess
-
setImageProcess
Set image processing parameters.- 参数:
imageProcess- Image processing parameters
-
getProgressListener
Obtain the data transfer listener.- 返回:
- Data transfer listener
-
setProgressListener
Set the data transfer listener.- 参数:
progressListener- Data transfer listener
-
getProgressInterval
public long getProgressInterval()Obtain the callback threshold of the data transfer listener. The default value is 100 KB.- 返回:
- Callback threshold of the data transfer listener
-
setProgressInterval
public void setProgressInterval(long progressInterval) Set the callback threshold of the data transfer listener. The default value is 100 KB.- 参数:
progressInterval- Callback threshold of the data transfer listener
-
getRequestParameters
-
getCacheOption
Obtain the control option of the read-ahead cache.- 返回:
- Control option of the read-ahead cache
-
setCacheOption
Set the control option of the read-ahead cache.- 参数:
cacheOption- Control option of the read-ahead cache
-
getTtl
public long getTtl()Obtain the cache data expiration time.- 返回:
- Cache data expiration time
-
setTtl
public void setTtl(long ttl) Set the cache data expiration time.- 参数:
ttl- Cache data expiration time
-
setRequestParameters
-
isAutoUnzipResponse
public boolean isAutoUnzipResponse()Obtain the response to whether to automatically decompress the object compressed using gzip. The default response is false, indicating that the object is not automatically decompressed.
Description: OBS SDK uses okhttp. If Accept-Encoding is not set in a request, okhttp automatically adds the Accept-Encoding:gzip header and decompresses the object after receiving the request.
If the Accept-Encoding header is manually set in a request, the object will not be automatically decompressed.- 返回:
- 从以下版本开始:
- 3.20.5
- 另请参阅:
-
setAutoUnzipResponse
public void setAutoUnzipResponse(boolean autoUnzipResponse) Set the response to whether to automatically decompress the object compressed using gzip. The default response is false, indicating that the object is not automatically decompressed.
Description: OBS SDK uses okhttp. If Accept-Encoding is not set in a request, okhttp automatically adds the Accept-Encoding:gzip header and decompresses the object after receiving the request.
If the Accept-Encoding header is manually set in a request, the object will not be automatically decompressed.- 参数:
autoUnzipResponse-- 从以下版本开始:
- 3.20.5
- 另请参阅:
-
setIsEncodeHeaders
public void setIsEncodeHeaders(boolean encodeHeaders) Specifies whether to encode and decode the returned header fields.- 覆盖:
setIsEncodeHeaders在类中BaseObjectRequest- 参数:
encodeHeaders- Specifies whether to encode and decode header fields.
-
isEncodeHeaders
public boolean isEncodeHeaders()Specifies whether to encode and decode the returned header fields.- 覆盖:
isEncodeHeaders在类中BaseObjectRequest- 返回:
- Specifies whether to encode and decode header fields.
-
toString
- 覆盖:
toString在类中GetObjectMetadataRequest
-