public class PostTextAuditRequest extends BasePostAuditRequest
CosXmlRequest.OnRequestWeightListener
限定符和类型 | 字段和说明 |
---|---|
protected PostTextAudit |
postTextAudit |
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
PostTextAuditRequest(java.lang.String bucket)
提交文本审核任务请求
|
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
java.lang.String |
getPath(CosXmlServiceConfig cosXmlServiceConfig)
获取HTTP URL Path
|
RequestBodySerializer |
getRequestBody()
获取请求体
|
void |
setBizType(java.lang.String bizType)
已过时。
|
void |
setCallback(java.lang.String callback)
已过时。
|
void |
setCallbackVersion(java.lang.String callbackVersion)
已过时。
|
void |
setConfig(PostTextAudit.TextAuditConf conf)
设置审核规则配置
|
void |
setContent(java.lang.String content)
已过时。
|
void |
setDataId(java.lang.String dataId)
已过时。
|
void |
setDetectType(java.lang.String detectType)
已过时。
|
void |
setInput(PostTextAudit.TextAuditInput input)
设置需要审核的内容
|
void |
setObject(java.lang.String object)
已过时。
|
void |
setUrl(java.lang.String url)
已过时。
|
getMethod, getRequestHost
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getQueryString, getRegion, getRequestHeaders, 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
protected final PostTextAudit postTextAudit
public PostTextAuditRequest(@NonNull java.lang.String bucket)
bucket
- 存储桶名public void setInput(@NonNull PostTextAudit.TextAuditInput input)
input
- 需要审核的内容public void setConfig(@NonNull PostTextAudit.TextAuditConf conf)
conf
- 审核规则配置@Deprecated public void setContent(@NonNull java.lang.String content)
@Deprecated public void setObject(@NonNull java.lang.String object)
@Deprecated public void setUrl(@NonNull java.lang.String url)
@Deprecated public void setDataId(@NonNull java.lang.String dataId)
@Deprecated public void setDetectType(@NonNull java.lang.String detectType)
@Deprecated public void setCallback(@NonNull java.lang.String callback)
@Deprecated public void setBizType(@NonNull java.lang.String bizType)
@Deprecated public void setCallbackVersion(@NonNull java.lang.String callbackVersion)
public java.lang.String getPath(CosXmlServiceConfig cosXmlServiceConfig)
CosXmlRequest
getPath
在类中 BucketRequest
cosXmlServiceConfig
- SDK服务配置public RequestBodySerializer getRequestBody() throws CosXmlClientException
CosXmlRequest
getRequestBody
在类中 CosXmlRequest
CosXmlClientException
- 客户异常public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 BucketRequest
CosXmlClientException
- cosXmlClientException