public interface TaobaoRequest<T extends TaobaoResponse>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
check()
客户端参数检查,减少服务端无效调用。
|
String |
getApiMethodName()
获取TOP的API名称。
|
int |
getBatchApiOrder()
获取API在批量调用中的顺序,仅用于批量API调用请求。
|
String |
getBatchApiSession()
获取API请求的用户授权码,仅用于批量API调用请求。
|
Map<String,String> |
getHeaderMap()
获取自定义HTTP请求头参数。
|
Class<T> |
getResponseClass()
获取具体响应实现类的定义。
|
String |
getTargetAppKey()
获取被调用的目标AppKey
|
Map<String,String> |
getTextParams()
获取所有的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 |
setBatchApiOrder(int order)
设置API在批量调用中的顺序,仅用于批量API调用请求。
|
void |
setBatchApiSession(String session)
设置API请求的用户授权码,仅用于批量API调用请求。
|
void |
setTopApiCallType(String topApiCallType) |
void |
setTopApiFormat(String topApiFormat) |
void |
setTopApiVersion(String topApiVersion) |
void |
setTopContentType(String topContentType) |
void |
setTopHttpMethod(String topHttpMethod) |
void |
setTopResponseType(String topResponseType) |
String getApiMethodName()
String getTopContentType()
void setTopContentType(String topContentType)
String getTopResponseType()
void setTopResponseType(String topResponseType)
String getTopApiVersion()
void setTopApiVersion(String topApiVersion)
String getTopApiFormat()
void setTopApiFormat(String topApiFormat)
String getTopApiCallType()
void setTopApiCallType(String topApiCallType)
String getTopHttpMethod()
void setTopHttpMethod(String topHttpMethod)
Map<String,String> getTextParams()
Long getTimestamp()
String getTargetAppKey()
void check()
throws ApiRuleException
ApiRuleExceptionString getBatchApiSession()
void setBatchApiSession(String session)
session - 用户授权码int getBatchApiOrder()
void setBatchApiOrder(int order)
order - 顺序值Copyright © 2020. All rights reserved.