public abstract class ImageUploadRequest extends PutObjectRequest implements PicOperationProvider
Created by rickenwang on 2021/4/28. Copyright 2010-2021 Tencent Cloud. All Rights Reserved.
CosXmlRequest.OnRequestWeightListener
限定符和类型 | 字段和说明 |
---|---|
boolean |
isPicInfo
是否返回原图信息
|
data, fileLength, inputStream, progressListener, srcPath, strData, uri, url, urlUploadPolicy
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
限定符 | 构造器和说明 |
---|---|
protected |
ImageUploadRequest(java.lang.String bucket,
java.lang.String cosPath) |
|
ImageUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
byte[] data) |
|
ImageUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.io.InputStream inputStream) |
|
ImageUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String srcPath) |
|
ImageUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.StringBuilder stringBuilder) |
|
ImageUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
android.net.Uri uri) |
|
ImageUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.net.URL url) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
void |
setTrafficLimit(long limit)
单链接限速,单位为bit/s
限速值设置范围为819200~838860800,即100KB/s~100MB/s,如果超出该范围会返回400错误。
|
getMetadata, setCacheControl, setContentDisposition, setContentEncodeing, setExpires, setMetadata, setPicOperations, setStroageClass, setXCOSACL, setXCOSACL, setXCOSGrantRead, setXCOSGrantWrite, setXCOSMeta, setXCOSReadWrite
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPicOperations
public ImageUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String srcPath)
public ImageUploadRequest(java.lang.String bucket, java.lang.String cosPath, android.net.Uri uri)
public ImageUploadRequest(java.lang.String bucket, java.lang.String cosPath, byte[] data)
public ImageUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.StringBuilder stringBuilder)
public ImageUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.io.InputStream inputStream)
public ImageUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.net.URL url)
protected ImageUploadRequest(java.lang.String bucket, java.lang.String cosPath)
public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 PutObjectRequest
CosXmlClientException
- cosXmlClientExceptionpublic void setTrafficLimit(long limit)
limit
-