public class OapiPlatformTranslateRequest extends BaseTaobaoRequest<OapiPlatformTranslateResponse>
headerMap, order, session, targetAppKey, timestamp, topMixParams, udfParams| Constructor and Description |
|---|
OapiPlatformTranslateRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
客户端参数检查,减少服务端无效调用。
|
String |
getApiMethodName()
获取TOP的API名称。
|
String |
getQuery() |
Class<OapiPlatformTranslateResponse> |
getResponseClass()
获取具体响应实现类的定义。
|
String |
getSourceLanguage() |
String |
getTargetLanguage() |
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标准)
|
void |
setHttpMethod(String httpMethod) |
void |
setQuery(String query) |
void |
setSourceLanguage(String sourceLanguage) |
void |
setTargetLanguage(String targetLanguage) |
void |
setTopHttpMethod(String topHttpMethod) |
void |
setTopResponseType(String topResponseType) |
getBatchApiOrder, getBatchApiSession, getHeaderMap, getTargetAppKey, getTimestamp, getTopApiFormat, getTopApiVersion, getTopContentType, getTopMixParams, putHeaderParam, putOtherTextParam, setBatchApiOrder, setBatchApiSession, setHeaderMap, setTargetAppKey, setTimestamp, setTopApiCallType, setTopApiFormat, setTopApiVersion, setTopContentType, setTopMixParamspublic void setQuery(String query)
public String getQuery()
public void setSourceLanguage(String sourceLanguage)
public String getSourceLanguage()
public void setTargetLanguage(String targetLanguage)
public String getTargetLanguage()
public String getApiMethodName()
TaobaoRequestgetApiMethodName in interface TaobaoRequest<OapiPlatformTranslateResponse>getApiMethodName in class BaseTaobaoRequest<OapiPlatformTranslateResponse>public String getTopResponseType()
TaobaoRequestgetTopResponseType in interface TaobaoRequest<OapiPlatformTranslateResponse>getTopResponseType in class BaseTaobaoRequest<OapiPlatformTranslateResponse>public void setTopResponseType(String topResponseType)
setTopResponseType in interface TaobaoRequest<OapiPlatformTranslateResponse>setTopResponseType in class BaseTaobaoRequest<OapiPlatformTranslateResponse>public String getTopApiCallType()
TaobaoRequestgetTopApiCallType in interface TaobaoRequest<OapiPlatformTranslateResponse>getTopApiCallType in class BaseTaobaoRequest<OapiPlatformTranslateResponse>public String getTopHttpMethod()
TaobaoRequestgetTopHttpMethod in interface TaobaoRequest<OapiPlatformTranslateResponse>getTopHttpMethod in class BaseTaobaoRequest<OapiPlatformTranslateResponse>public void setTopHttpMethod(String topHttpMethod)
setTopHttpMethod in interface TaobaoRequest<OapiPlatformTranslateResponse>setTopHttpMethod in class BaseTaobaoRequest<OapiPlatformTranslateResponse>public void setHttpMethod(String httpMethod)
public Map<String,String> getTextParams()
TaobaoRequestpublic Class<OapiPlatformTranslateResponse> getResponseClass()
TaobaoRequestpublic void check()
throws ApiRuleException
TaobaoRequestApiRuleExceptionCopyright © 2021. All rights reserved.