public class PutObjectRequest extends BasePutObjectRequest
CosXmlRequest.OnRequestWeightListener
data, fileLength, inputStream, progressListener, srcPath, strData, uri, url, urlUploadPolicy
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
限定符 | 构造器和说明 |
---|---|
protected |
PutObjectRequest(java.lang.String bucket,
java.lang.String cosPath) |
|
PutObjectRequest(java.lang.String bucket,
java.lang.String cosPath,
byte[] data) |
|
PutObjectRequest(java.lang.String bucket,
java.lang.String cosPath,
java.io.InputStream inputStream) |
|
PutObjectRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String srcPath) |
|
PutObjectRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.StringBuilder stringBuilder) |
|
PutObjectRequest(java.lang.String bucket,
java.lang.String cosPath,
android.net.Uri uri) |
|
PutObjectRequest(java.lang.String bucket,
java.lang.String cosPath,
java.net.URL url) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
ObjectMetadata |
getMetadata() |
void |
setCacheControl(java.lang.String cacheControl)
设置Cache-Control头部
|
void |
setContentDisposition(java.lang.String contentDisposition)
设置Content-Disposition头部部
|
void |
setContentEncodeing(java.lang.String contentEncoding)
设置Content-Encoding头部
|
void |
setExpires(java.lang.String expires)
设置Expires头部
|
void |
setMetadata(ObjectMetadata metadata) |
void |
setPicOperations(PicOperations operations)
设置启动盲水印参数
|
void |
setStroageClass(COSStorageClass stroageClass)
设置对象的存储类型。
|
void |
setTrafficLimit(long limit)
单链接限速,单位为bit/s
限速值设置范围为819200~838860800,即100KB/s~100MB/s,如果超出该范围会返回400错误。
|
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)
赋予被授权者操作对象的写入权限
|
getData, getFileLength, getInputStream, getMethod, getProgressListener, getSrcPath, getStrData, getUri, getUrl, getUrlUploadPolicy, isPriorityLow, setData, setInputStream, setPriorityLow, setProgressListener, setSrcPath, setStrData, setTrafficLimit, setUri, setUrl, setUrlUploadPolicy, xmlBuilder
getContentType, getCosPath, getPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getQueryString, getRegion, getRequestBody, getRequestHeaders, getRequestHost, getRequestURL, getSignSourceProvider, getSTSCredentialScope, 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
protected PutObjectRequest(java.lang.String bucket, java.lang.String cosPath)
public PutObjectRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String srcPath)
public PutObjectRequest(java.lang.String bucket, java.lang.String cosPath, android.net.Uri uri)
public PutObjectRequest(java.lang.String bucket, java.lang.String cosPath, byte[] data)
public PutObjectRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.StringBuilder stringBuilder)
public PutObjectRequest(java.lang.String bucket, java.lang.String cosPath, java.io.InputStream inputStream)
public PutObjectRequest(java.lang.String bucket, java.lang.String cosPath, java.net.URL url)
public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 BasePutObjectRequest
CosXmlClientException
- cosXmlClientExceptionpublic void setMetadata(ObjectMetadata metadata)
public ObjectMetadata getMetadata()
public void setCacheControl(@NonNull java.lang.String cacheControl)
设置Cache-Control头部
cacheControl
- Cache-Control头部public void setContentDisposition(@NonNull java.lang.String contentDisposition)
设置Content-Disposition头部部
contentDisposition
- Content-Disposition头部public void setContentEncodeing(@NonNull java.lang.String contentEncoding)
设置Content-Encoding头部
contentEncoding
- Content-Encoding头部public void setExpires(@NonNull java.lang.String expires)
设置Expires头部
expires
- Expires头部public void setXCOSMeta(java.lang.String key, java.lang.String value)
key
- 自定义头部信息的key值,需要以 x-cos-meta- 开头value
- 自定义头部信息的value值。public void setXCOSACL(COSACL cosacl)
cosacl
- COS 访问权限public void setXCOSACL(java.lang.String cosacl)
cosacl
- COS 访问权限public void setXCOSGrantRead(ACLAccount aclAccount)
赋予被授权者读权限
aclAccount
- 读权限用户列表 ACLAccount
public void setXCOSGrantWrite(ACLAccount aclAccount)
aclAccount
- ACL授权账号列表public void setXCOSReadWrite(ACLAccount aclAccount)
aclAccount
- ACL授权账号列表public void setStroageClass(COSStorageClass stroageClass)
stroageClass
- COS存储类型public void setPicOperations(@NonNull PicOperations operations)
operations
- 盲水印参数public void setTrafficLimit(long limit)
limit
-