public abstract class BaseTaobaoRequest<T extends TaobaoResponse> extends Object implements TaobaoRequest<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,String> |
headerMap |
protected int |
order |
protected String |
session |
protected String |
targetAppKey |
protected Long |
timestamp |
protected String |
topMixParams |
protected TaobaoHashMap |
udfParams |
| 构造器和说明 |
|---|
BaseTaobaoRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getApiMethodName()
获取TOP的API名称。
|
int |
getBatchApiOrder()
获取API在批量调用中的顺序,仅用于批量API调用请求。
|
String |
getBatchApiSession()
获取API请求的用户授权码,仅用于批量API调用请求。
|
Map<String,String> |
getHeaderMap()
获取自定义HTTP请求头参数。
|
String |
getTargetAppKey()
获取被调用的目标AppKey
|
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 |
getTopMixParams() |
String |
getTopResponseType()
API对应的响应格式,包含top(top标准),qimen(奇门1.0标准),qimen2(奇门2.0标准)
|
void |
putHeaderParam(String key,
String value)
添加头部自定义请求参数。
|
void |
putOtherTextParam(String key,
String value)
添加URL自定义请求参数。
|
void |
setBatchApiOrder(int order)
设置API在批量调用中的顺序,仅用于批量API调用请求。
|
void |
setBatchApiSession(String session)
设置API请求的用户授权码,仅用于批量API调用请求。
|
void |
setHeaderMap(Map<String,String> headerMap) |
void |
setTargetAppKey(String targetAppKey) |
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 |
setTopMixParams(String topMixParams) |
void |
setTopResponseType(String topResponseType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheck, getResponseClass, getTextParamsprotected TaobaoHashMap udfParams
protected Long timestamp
protected String targetAppKey
protected String topMixParams
protected String session
protected int order
public Map<String,String> getHeaderMap()
TaobaoRequestgetHeaderMap 在接口中 TaobaoRequest<T extends TaobaoResponse>public Long getTimestamp()
TaobaoRequestgetTimestamp 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setTimestamp(Long timestamp)
public String getTargetAppKey()
TaobaoRequestgetTargetAppKey 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setTargetAppKey(String targetAppKey)
public String getTopMixParams()
public void setTopMixParams(String topMixParams)
public String getBatchApiSession()
TaobaoRequestgetBatchApiSession 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setBatchApiSession(String session)
TaobaoRequestsetBatchApiSession 在接口中 TaobaoRequest<T extends TaobaoResponse>session - 用户授权码public int getBatchApiOrder()
TaobaoRequestgetBatchApiOrder 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setBatchApiOrder(int order)
TaobaoRequestsetBatchApiOrder 在接口中 TaobaoRequest<T extends TaobaoResponse>order - 顺序值public String getApiMethodName()
TaobaoRequestgetApiMethodName 在接口中 TaobaoRequest<T extends TaobaoResponse>public String getTopContentType()
TaobaoRequestgetTopContentType 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setTopContentType(String topContentType)
setTopContentType 在接口中 TaobaoRequest<T extends TaobaoResponse>public String getTopResponseType()
TaobaoRequestgetTopResponseType 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setTopResponseType(String topResponseType)
setTopResponseType 在接口中 TaobaoRequest<T extends TaobaoResponse>public String getTopApiVersion()
TaobaoRequestgetTopApiVersion 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setTopApiVersion(String topApiVersion)
setTopApiVersion 在接口中 TaobaoRequest<T extends TaobaoResponse>public String getTopApiFormat()
getTopApiFormat 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setTopApiFormat(String topApiFormat)
setTopApiFormat 在接口中 TaobaoRequest<T extends TaobaoResponse>public String getTopApiCallType()
TaobaoRequestgetTopApiCallType 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setTopApiCallType(String topApiCallType)
setTopApiCallType 在接口中 TaobaoRequest<T extends TaobaoResponse>public String getTopHttpMethod()
TaobaoRequestgetTopHttpMethod 在接口中 TaobaoRequest<T extends TaobaoResponse>public void setTopHttpMethod(String topHttpMethod)
setTopHttpMethod 在接口中 TaobaoRequest<T extends TaobaoResponse>Copyright © 2020. All rights reserved.