public final class InitMultipartUploadRequest extends BaseMultipartUploadRequest
CosXmlRequest.OnRequestWeightListener
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
InitMultipartUploadRequest(java.lang.String bucket,
java.lang.String cosPath)
InitMultipartUploadRequest 构造方法
|
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
ObjectMetadata |
getMetadata() |
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
java.util.Map<java.lang.String,java.lang.String> |
getQueryString()
获取url query集合
|
RequestBodySerializer |
getRequestBody()
获取请求体
|
void |
setCacheControl(java.lang.String cacheControl)
设置Cache-Control头部
|
void |
setContentDisposition(java.lang.String contentDisposition)
设置 Content-Disposition 头部
|
void |
setContentEncoding(java.lang.String contentEncoding)
设置 Content-Encoding 头部
|
void |
setExpires(java.lang.String expires)
设置 Expires 头部
|
void |
setMetadata(ObjectMetadata metadata) |
void |
setStroageClass(COSStorageClass stroageClass)
设置存储类型。
|
void |
setXCOSACL(COSACL cosacl)
定义对象的访问控制列表(ACL)属性。
|
void |
setXCOSACL(java.lang.String cosacl)
|
void |
setXCOSGrantRead(ACLAccount aclAccount)
赋予被授权者操作对象的读取权限
|
void |
setXCOSGrantWrite(ACLAccount aclAccount)
赋予被授权者操作对象的写入权限
|
void |
setXCOSMeta(java.lang.String key,
java.lang.String value)
设置用户自定义头部信息
|
void |
setXCOSReadWrite(ACLAccount aclAccount)
赋予被授权者操作对象的所有权限
|
getSTSCredentialScope
getContentType, getCosPath, getPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getRegion, getRequestHeaders, getRequestHost, getRequestURL, getSignSourceProvider, getWeight, headersHasUnsafeNonAscii, isNeedMD5, isSignInUrl, isSupportAccelerate, isSupportAccelerate, setNeedMD5, setOnRequestWeightListener, setQueryEncodedString, setQueryParameters, setRegion, setRequestHeaders, setRequestHeaders, setRequestHeaders, setRequestURL, setSign, setSign, setSign, setSign, setSign, setSignInUrl, setSignKeyTime, setSignParamsAndHeaders, setSignSourceProvider, setTask, setTaskStateListener, xmlBuilder
public InitMultipartUploadRequest(java.lang.String bucket, java.lang.String cosPath)
bucket
- 存储桶名称(cos v5 的 bucket格式为:xxx-appid, 如 bucket-1250000000)cosPath
- 远端路径,即存储到 COS 上的绝对路径public void setCacheControl(@NonNull java.lang.String cacheControl)
cacheControl
- Cache-Control头部public void setContentDisposition(@NonNull java.lang.String contentDisposition)
contentDisposition
- Content-Disposition 头部public void setContentEncoding(@NonNull java.lang.String contentEncoding)
contentEncoding
- Content-Encoding头部public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 ObjectRequest
CosXmlClientException
- cosXmlClientExceptionpublic void setExpires(@NonNull java.lang.String expires)
expires
- Expires 头部public void setXCOSMeta(java.lang.String key, java.lang.String value)
key
- 自定义头部信息的key值,需要以 x-cos-meta- 开头value
- 自定义头部信息的value值。public void setXCOSACL(java.lang.String cosacl)
cosacl
- COS 访问权限public void setMetadata(ObjectMetadata metadata)
public ObjectMetadata getMetadata()
public void setXCOSACL(COSACL cosacl)
cosacl
- COS 访问权限public void setXCOSGrantRead(ACLAccount aclAccount)
aclAccount
- ACL授权账号列表public void setXCOSGrantWrite(ACLAccount aclAccount)
aclAccount
- ACL授权账号列表public void setXCOSReadWrite(ACLAccount aclAccount)
aclAccount
- ACL授权账号列表public void setStroageClass(COSStorageClass stroageClass)
stroageClass
- COS存储类型public java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
public java.util.Map<java.lang.String,java.lang.String> getQueryString()
CosXmlRequest
getQueryString
在类中 CosXmlRequest
public RequestBodySerializer getRequestBody()
CosXmlRequest
getRequestBody
在类中 CosXmlRequest