public class PresignedUrlRequest extends CosXmlRequest
CosXmlRequest.OnRequestWeightListener
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
PresignedUrlRequest(java.lang.String bucket,
java.lang.String cosPath) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
java.lang.String |
getPath(CosXmlServiceConfig config)
获取HTTP URL Path
|
RequestBodySerializer |
getRequestBody()
获取请求体
|
STSCredentialScope[] |
getSTSCredentialScope(CosXmlServiceConfig config)
获取STS范围限制信息
|
void |
setCosPath(java.lang.String cosPath) |
void |
setRequestMethod(java.lang.String method) |
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getQueryString, 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 PresignedUrlRequest(java.lang.String bucket, java.lang.String cosPath)
public void setRequestMethod(java.lang.String method)
public void setCosPath(java.lang.String cosPath)
public java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
public java.lang.String getPath(CosXmlServiceConfig config)
CosXmlRequest
getPath
在类中 CosXmlRequest
config
- SDK服务配置public RequestBodySerializer getRequestBody() throws CosXmlClientException
CosXmlRequest
getRequestBody
在类中 CosXmlRequest
CosXmlClientException
- 客户异常public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 CosXmlRequest
CosXmlClientException
- cosXmlClientExceptionpublic STSCredentialScope[] getSTSCredentialScope(CosXmlServiceConfig config)
CosXmlRequest
getSTSCredentialScope
在类中 CosXmlRequest
config
- SDK服务配置