public class SignatureValidateRequest extends Object implements TaobaoUploadRequest<SignatureValidateResponse>
| Constructor and Description |
|---|
SignatureValidateRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
客户端参数检查,减少服务端无效调用。
|
String |
getAlgorithm() |
String |
getApiMethodName()
获取TOP的API名称。
|
int |
getBatchApiOrder()
获取API在批量调用中的顺序,仅用于批量API调用请求。
|
String |
getBatchApiSession()
获取API请求的用户授权码,仅用于批量API调用请求。
|
FileItem |
getBody() |
String |
getCharset() |
Map<String,FileItem> |
getFileParams()
获取所有的Key-Value形式的文件请求参数集合。其中:
Key: 请求参数名
Value: 请求参数文件元数据
|
Map<String,String> |
getHeaderMap()
获取自定义HTTP请求头参数。
|
String |
getProxyAppKey() |
Class<SignatureValidateResponse> |
getResponseClass()
获取具体响应实现类的定义。
|
String |
getSignature() |
String |
getTargetAppKey()
获取被调用的目标AppKey
|
Map<String,String> |
getTextParams()
获取所有的Key-Value形式的文本请求参数集合。其中:
Key: 请求参数名
Value: 请求参数值
|
Long |
getTimestamp()
获取请求时间戳(为空则用系统当前时间)
|
String |
getTopApiCallType()
获取API调用方式
|
String |
getTopApiFormat() |
String |
getTopApiVersion()
API版本号,将作为最终API请求的v请求参数
|
String |
getTopContentType()
API对应的请求方式,包含xml,json,form
|
String |
getTopHttpMethod()
获取Http method,例如GET,POST
|
String |
getTopResponseType()
API对应的响应格式,包含top(top标准),qimen(奇门1.0标准),qimen2(奇门2.0标准)
|
void |
putOtherTextParam(String key,
String value) |
void |
setAlgorithm(String algorithm) |
void |
setBatchApiOrder(int order)
设置API在批量调用中的顺序,仅用于批量API调用请求。
|
void |
setBatchApiSession(String session)
设置API请求的用户授权码,仅用于批量API调用请求。
|
void |
setBody(FileItem body) |
void |
setCharset(String charset) |
void |
setProxyAppKey(String proxyAppKey) |
void |
setSignature(String signature) |
void |
setTimestamp(Long timestamp) |
void |
setTopApiCallType(String topApiCallType) |
void |
setTopApiFormat(String topApiFormat) |
void |
setTopApiVersion(String topApiVersion) |
void |
setTopContentType(String topContentType) |
void |
setTopHttpMethod(String topHttpMethod) |
void |
setTopResponseType(String topResponseType) |
public void setAlgorithm(String algorithm)
public String getAlgorithm()
public void setBody(FileItem body)
public FileItem getBody()
public void setCharset(String charset)
public String getCharset()
public void setProxyAppKey(String proxyAppKey)
public String getProxyAppKey()
public void setSignature(String signature)
public String getSignature()
public Long getTimestamp()
TaobaoRequestgetTimestamp in interface TaobaoRequest<SignatureValidateResponse>public void setTimestamp(Long timestamp)
public String getApiMethodName()
TaobaoRequestgetApiMethodName in interface TaobaoRequest<SignatureValidateResponse>public String getTopContentType()
TaobaoRequestgetTopContentType in interface TaobaoRequest<SignatureValidateResponse>public void setTopContentType(String topContentType)
setTopContentType in interface TaobaoRequest<SignatureValidateResponse>public String getTopResponseType()
TaobaoRequestgetTopResponseType in interface TaobaoRequest<SignatureValidateResponse>public void setTopResponseType(String topResponseType)
setTopResponseType in interface TaobaoRequest<SignatureValidateResponse>public String getTopApiVersion()
TaobaoRequestgetTopApiVersion in interface TaobaoRequest<SignatureValidateResponse>public void setTopApiVersion(String topApiVersion)
setTopApiVersion in interface TaobaoRequest<SignatureValidateResponse>public String getTopApiFormat()
getTopApiFormat in interface TaobaoRequest<SignatureValidateResponse>public void setTopApiFormat(String topApiFormat)
setTopApiFormat in interface TaobaoRequest<SignatureValidateResponse>public String getTopApiCallType()
TaobaoRequestgetTopApiCallType in interface TaobaoRequest<SignatureValidateResponse>public void setTopApiCallType(String topApiCallType)
setTopApiCallType in interface TaobaoRequest<SignatureValidateResponse>public String getTopHttpMethod()
TaobaoRequestgetTopHttpMethod in interface TaobaoRequest<SignatureValidateResponse>public void setTopHttpMethod(String topHttpMethod)
setTopHttpMethod in interface TaobaoRequest<SignatureValidateResponse>public Map<String,String> getTextParams()
TaobaoRequestgetTextParams in interface TaobaoRequest<SignatureValidateResponse>public Map<String,FileItem> getFileParams()
TaobaoUploadRequestgetFileParams in interface TaobaoUploadRequest<SignatureValidateResponse>public Class<SignatureValidateResponse> getResponseClass()
TaobaoRequestgetResponseClass in interface TaobaoRequest<SignatureValidateResponse>public void check()
throws ApiRuleException
TaobaoRequestcheck in interface TaobaoRequest<SignatureValidateResponse>ApiRuleExceptionpublic Map<String,String> getHeaderMap()
TaobaoRequestgetHeaderMap in interface TaobaoRequest<SignatureValidateResponse>public String getTargetAppKey()
TaobaoRequestgetTargetAppKey in interface TaobaoRequest<SignatureValidateResponse>public String getBatchApiSession()
TaobaoRequestgetBatchApiSession in interface TaobaoRequest<SignatureValidateResponse>public void setBatchApiSession(String session)
TaobaoRequestsetBatchApiSession in interface TaobaoRequest<SignatureValidateResponse>session - 用户授权码public int getBatchApiOrder()
TaobaoRequestgetBatchApiOrder in interface TaobaoRequest<SignatureValidateResponse>public void setBatchApiOrder(int order)
TaobaoRequestsetBatchApiOrder in interface TaobaoRequest<SignatureValidateResponse>order - 顺序值Copyright © 2021. All rights reserved.