public class GetObjectRequest extends OSSRequest
OSSRequest.CRC64Config
构造器和说明 |
---|
GetObjectRequest(java.lang.String bucketName,
java.lang.String objectKey)
Creates the new request to get the specified object
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getBucketName() |
java.lang.String |
getObjectKey() |
OSSProgressCallback |
getProgressListener() |
Range |
getRange() |
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders() |
java.lang.String |
getxOssProcess() |
void |
setBucketName(java.lang.String bucketName)
Sets the bucket name
|
void |
setObjectKey(java.lang.String objectKey)
Sets the object to download
|
void |
setProgressListener(OSSProgressCallback<GetObjectRequest> progressListener) |
void |
setRange(Range range)
Sets the range to download
|
void |
setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders) |
void |
setxOssProcess(java.lang.String xOssProcess) |
getCRC64, isAuthorizationRequired, setCRC64, setIsAuthorizationRequired
public GetObjectRequest(java.lang.String bucketName, java.lang.String objectKey)
bucketName
- Bucket nameobjectKey
- Object keypublic java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
public void setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- Bucket namepublic java.lang.String getObjectKey()
public void setObjectKey(java.lang.String objectKey)
objectKey
- Object keypublic Range getRange()
public void setRange(Range range)
range
- The range to download (starting from 0 to the length -1)public java.lang.String getxOssProcess()
public void setxOssProcess(java.lang.String xOssProcess)
public OSSProgressCallback getProgressListener()
public void setProgressListener(OSSProgressCallback<GetObjectRequest> progressListener)