public class WxQidianServiceOkHttpImpl extends BaseWxQidianServiceImpl<okhttp3.OkHttpClient,OkHttpProxyInfo>
| 构造器和说明 |
|---|
WxQidianServiceOkHttpImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAccessToken(boolean forceRefresh)
获取access_token,本方法线程安全.
|
okhttp3.OkHttpClient |
getRequestHttpClient() |
OkHttpProxyInfo |
getRequestHttpProxy() |
HttpType |
getRequestType() |
void |
initHttp()
初始化http请求对象.
|
addConfigStorage, buildQrConnectUrl, checkSignature, clearQuota, createJsapiSignature, execute, execute, executeInternal, extractAccessToken, get, get, getAccessToken, getCallbackIP, getJsapiTicket, getJsapiTicket, getRequestHttp, getTicket, getTicket, getWxMpConfigStorage, netCheck, post, post, post, post, post, post, removeConfigStorage, setMaxRetryTimes, setMultiConfigStorages, setMultiConfigStorages, setRetrySleepMillis, setWxMpConfigStorage, shortUrl, switchover, switchoverToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCallDataService, getDialServicepublic okhttp3.OkHttpClient getRequestHttpClient()
public OkHttpProxyInfo getRequestHttpProxy()
public HttpType getRequestType()
public String getAccessToken(boolean forceRefresh) throws WxErrorException
WxQidianService获取access_token,本方法线程安全. 且在多线程同时刷新时只刷新一次,避免超出2000次/日的调用次数上限 另:本service的所有方法都会在access_token过期时调用此方法 程序员在非必要情况下尽量不要主动调用此方法 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140183&token=&lang=zh_CN
forceRefresh - 是否强制刷新WxErrorException - .public void initHttp()
WxQidianServiceCopyright © 2021. All rights reserved.