public class OapiFileUploadChunkRequest extends BaseTaobaoRequest<OapiFileUploadChunkResponse> implements TaobaoUploadRequest<OapiFileUploadChunkResponse>
headerMap, order, session, targetAppKey, timestamp, topMixParams, udfParams| Constructor and Description |
|---|
OapiFileUploadChunkRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
客户端参数检查,减少服务端无效调用。
|
String |
getAgentId() |
String |
getApiMethodName()
获取TOP的API名称。
|
Long |
getChunkSequence() |
FileItem |
getFile() |
Map<String,FileItem> |
getFileParams()
获取所有的Key-Value形式的文件请求参数集合。其中:
Key: 请求参数名
Value: 请求参数文件元数据
|
Class<OapiFileUploadChunkResponse> |
getResponseClass()
获取具体响应实现类的定义。
|
Map<String,String> |
getTextParams()
获取所有的Key-Value形式的文本请求参数集合。其中:
Key: 请求参数名
Value: 请求参数值
|
String |
getTopApiCallType()
获取API调用方式
|
String |
getTopHttpMethod()
获取Http method,例如GET,POST
|
String |
getTopResponseType()
API对应的响应格式,包含top(top标准),qimen(奇门1.0标准),qimen2(奇门2.0标准)
|
String |
getUploadId() |
void |
setAgentId(String agentId) |
void |
setChunkSequence(Long chunkSequence) |
void |
setFile(FileItem file) |
void |
setTopResponseType(String topResponseType) |
void |
setUploadId(String uploadId) |
getBatchApiOrder, getBatchApiSession, getHeaderMap, getTargetAppKey, getTimestamp, getTopApiFormat, getTopApiVersion, getTopContentType, getTopMixParams, putHeaderParam, putOtherTextParam, setBatchApiOrder, setBatchApiSession, setHeaderMap, setTargetAppKey, setTimestamp, setTopApiCallType, setTopApiFormat, setTopApiVersion, setTopContentType, setTopHttpMethod, setTopMixParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBatchApiOrder, getBatchApiSession, getHeaderMap, getTargetAppKey, getTimestamp, getTopApiFormat, getTopApiVersion, getTopContentType, setBatchApiOrder, setBatchApiSession, setTopApiCallType, setTopApiFormat, setTopApiVersion, setTopContentType, setTopHttpMethodpublic void setAgentId(String agentId)
public String getAgentId()
public void setChunkSequence(Long chunkSequence)
public Long getChunkSequence()
public void setFile(FileItem file)
public FileItem getFile()
public void setUploadId(String uploadId)
public String getUploadId()
public String getApiMethodName()
TaobaoRequestgetApiMethodName in interface TaobaoRequest<OapiFileUploadChunkResponse>getApiMethodName in class BaseTaobaoRequest<OapiFileUploadChunkResponse>public String getTopResponseType()
TaobaoRequestgetTopResponseType in interface TaobaoRequest<OapiFileUploadChunkResponse>getTopResponseType in class BaseTaobaoRequest<OapiFileUploadChunkResponse>public void setTopResponseType(String topResponseType)
setTopResponseType in interface TaobaoRequest<OapiFileUploadChunkResponse>setTopResponseType in class BaseTaobaoRequest<OapiFileUploadChunkResponse>public String getTopApiCallType()
TaobaoRequestgetTopApiCallType in interface TaobaoRequest<OapiFileUploadChunkResponse>getTopApiCallType in class BaseTaobaoRequest<OapiFileUploadChunkResponse>public String getTopHttpMethod()
TaobaoRequestgetTopHttpMethod in interface TaobaoRequest<OapiFileUploadChunkResponse>getTopHttpMethod in class BaseTaobaoRequest<OapiFileUploadChunkResponse>public Map<String,String> getTextParams()
TaobaoRequestgetTextParams in interface TaobaoRequest<OapiFileUploadChunkResponse>public Class<OapiFileUploadChunkResponse> getResponseClass()
TaobaoRequestgetResponseClass in interface TaobaoRequest<OapiFileUploadChunkResponse>public void check()
throws ApiRuleException
TaobaoRequestcheck in interface TaobaoRequest<OapiFileUploadChunkResponse>ApiRuleExceptionpublic Map<String,FileItem> getFileParams()
TaobaoUploadRequestgetFileParams in interface TaobaoUploadRequest<OapiFileUploadChunkResponse>Copyright © 2021. All rights reserved.