public class QRCodeUploadRequest extends ImageUploadRequest
CosXmlRequest.OnRequestWeightListener
限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
fileId
处理结果的文件路径名称,例如以/开头,则存入指定文件夹中,否则存入与原图文件相同的目录位置
|
java.lang.String |
saveBucket
存储结果的目标存储桶,格式为 BucketName-APPID,如果不指定的话默认保存到当前存储桶
|
isPicInfo
data, fileLength, inputStream, progressListener, srcPath, strData, uri, url, urlUploadPolicy
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
限定符 | 构造器和说明 |
---|---|
protected |
QRCodeUploadRequest(java.lang.String bucket,
java.lang.String cosPath) |
|
QRCodeUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
byte[] data) |
|
QRCodeUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.io.InputStream inputStream) |
|
QRCodeUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String srcPath) |
|
QRCodeUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.StringBuilder stringBuilder) |
|
QRCodeUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
android.net.Uri uri) |
|
QRCodeUploadRequest(java.lang.String bucket,
java.lang.String cosPath,
java.net.URL url) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
PicOperations |
getPicOperations() |
void |
setCover(int cover)
设置是否开启二维码覆盖,功能开启后,将对识别出的二维码覆盖上马赛克,默认值 0
|
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
public java.lang.String saveBucket
public java.lang.String fileId
public QRCodeUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String srcPath)
public QRCodeUploadRequest(java.lang.String bucket, java.lang.String cosPath, android.net.Uri uri)
public QRCodeUploadRequest(java.lang.String bucket, java.lang.String cosPath, byte[] data)
public QRCodeUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.StringBuilder stringBuilder)
public QRCodeUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.io.InputStream inputStream)
public QRCodeUploadRequest(java.lang.String bucket, java.lang.String cosPath, java.net.URL url)
protected QRCodeUploadRequest(java.lang.String bucket, java.lang.String cosPath)
public PicOperations getPicOperations()
public void setCover(int cover)
cover
- 0 表示不开启二维码覆盖
1 表示开启二维码覆盖public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 ImageUploadRequest
CosXmlClientException
- cosXmlClientExceptionpublic void setTrafficLimit(long limit)
limit
-