public final class OptionObjectRequest extends ObjectRequest
CosXmlRequest.OnRequestWeightListener
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
OptionObjectRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String origin,
java.lang.String accessControlMethod) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
java.lang.String |
getAccessControlHeaders()
获取用户设置的模拟跨域访问的请求头部
|
java.lang.String |
getAccessControlMethod()
获取设置的模拟跨域访问的请求 HTTP 方法
|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
java.lang.String |
getOrigin()
获取设置的模拟跨域访问的请求来源域名。
|
RequestBodySerializer |
getRequestBody()
获取请求体
|
void |
setAccessControlHeaders(java.lang.String accessControlHeaders)
设置模拟跨域访问的请求头部
|
void |
setAccessControlMethod(java.lang.String accessControlMethod)
设置模拟跨域访问的请求 HTTP 方法
|
void |
setOrigin(java.lang.String origin)
设置模拟跨域访问的请求来源域名。
|
getContentType, getCosPath, getPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getQueryString, getRegion, 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, xmlBuilder
public OptionObjectRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String origin, java.lang.String accessControlMethod)
bucket
- 存储桶名cosPath
- 对象cos上的路径origin
- 请求来源域名accessControlMethod
- 跨域访问的请求 HTTP 方法public java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
public RequestBodySerializer getRequestBody()
CosXmlRequest
getRequestBody
在类中 CosXmlRequest
public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 ObjectRequest
CosXmlClientException
- cosXmlClientExceptionpublic void setOrigin(java.lang.String origin)
设置模拟跨域访问的请求来源域名。
origin
- 请求来源域名public java.lang.String getOrigin()
public void setAccessControlMethod(java.lang.String accessControlMethod)
accessControlMethod
- 请求 HTTP 方法public java.lang.String getAccessControlMethod()
public void setAccessControlHeaders(java.lang.String accessControlHeaders)
accessControlHeaders
- 模拟跨域访问的请求头部public java.lang.String getAccessControlHeaders()