类 AbstractHttpApiExecute<P,V>
java.lang.Object
com.iplatform.core.httpapi.AbstractApiExecute<P,V>
com.iplatform.core.httpapi.AbstractHttpApiExecute<P,V>
- 所有已实现的接口:
ApiExecute<P,V>
-
字段概要
从类继承的字段 com.iplatform.core.httpapi.AbstractApiExecute
apiMethod, logger, url -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected StringacquireGzipContent(byte[] srcResponse) 把给定内容使用 GZIP 解压,返回解压后字符串,有些API会返回压缩内容以降低流量。protected abstract com.walker.web.ResponseValue<V>boolean是否请求是get拼接字符串参数方式:true 是,false 否com.walker.web.ResponseValue<V>protected abstract com.walker.web.ResponseValue<V>postInvoke(P request, Class<V> responseType) voidsetRequestAsText(boolean requestAsText) 从类继承的方法 com.iplatform.core.httpapi.AbstractApiExecute
getApiParamList, getGzip, getId, getMethod, getResponseTypeClazz, getTranslate, getUrl, setApiParamList, setGzip, setId, setMethod, setResponseTypeClazz, setTranslate, setUrl
-
构造器详细资料
-
AbstractHttpApiExecute
public AbstractHttpApiExecute()
-
-
方法详细资料
-
acquireGzipContent
把给定内容使用 GZIP 解压,返回解压后字符串,有些API会返回压缩内容以降低流量。1) 比如:天气接口等- 参数:
srcResponse-- 返回:
-
invoke
public com.walker.web.ResponseValue<V> invoke(P parameter, Class<V> responseType) throws ApiException - 抛出:
ApiException
-
getInvoke
-
postInvoke
-
getRequestAsText
public boolean getRequestAsText()从接口复制的说明:ApiExecute是否请求是get拼接字符串参数方式:true 是,false 否- 返回:
-
setRequestAsText
public void setRequestAsText(boolean requestAsText)
-