public class WeChatMiniAppServiceOkHttpImpl extends Object implements cn.binarywang.wx.miniapp.api.WxMaService, me.chanjar.weixin.common.util.http.RequestHttp<okhttp3.OkHttpClient,me.chanjar.weixin.common.util.http.okhttp.OkHttpProxyInfo>
| Constructor and Description |
|---|
WeChatMiniAppServiceOkHttpImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSignature(String timestamp,
String nonce,
String signature) |
<T,E> T |
execute(me.chanjar.weixin.common.util.http.RequestExecutor<T,E> executor,
String uri,
E data)
向微信端发送请求,在这里执行的策略是当发生access_token过期时才去刷新,然后重新执行请求,而不是全局定时请求
|
String |
get(String url,
String queryParam) |
String |
getAccessToken() |
String |
getAccessToken(boolean forceRefresh) |
cn.binarywang.wx.miniapp.api.WxMaAnalysisService |
getAnalysisService() |
cn.binarywang.wx.miniapp.api.WxMaCodeService |
getCodeService() |
cn.binarywang.wx.miniapp.api.WxMaJsapiService |
getJsapiService() |
cn.binarywang.wx.miniapp.api.WxMaMediaService |
getMediaService() |
cn.binarywang.wx.miniapp.api.WxMaMsgService |
getMsgService() |
cn.binarywang.wx.miniapp.api.WxMaQrcodeService |
getQrcodeService() |
me.chanjar.weixin.common.util.http.RequestHttp |
getRequestHttp() |
okhttp3.OkHttpClient |
getRequestHttpClient() |
me.chanjar.weixin.common.util.http.okhttp.OkHttpProxyInfo |
getRequestHttpProxy() |
me.chanjar.weixin.common.util.http.HttpType |
getRequestType() |
cn.binarywang.wx.miniapp.api.WxMaRunService |
getRunService() |
cn.binarywang.wx.miniapp.api.WxMaSecCheckService |
getSecCheckService() |
cn.binarywang.wx.miniapp.api.WxMaSettingService |
getSettingService() |
cn.binarywang.wx.miniapp.api.WxMaShareService |
getShareService() |
cn.binarywang.wx.miniapp.api.WxMaTemplateService |
getTemplateService() |
cn.binarywang.wx.miniapp.api.WxMaUserService |
getUserService() |
cn.binarywang.wx.miniapp.config.WxMaConfig |
getWxMaConfig() |
void |
initHttp() |
cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult |
jsCode2SessionInfo(String jsCode) |
String |
post(String url,
String postData) |
void |
setMaxRetryTimes(int maxRetryTimes) |
void |
setRetrySleepMillis(int retrySleepMillis) |
void |
setWxMaConfig(cn.binarywang.wx.miniapp.config.WxMaConfig wxConfigProvider) |
public okhttp3.OkHttpClient getRequestHttpClient()
getRequestHttpClient in interface me.chanjar.weixin.common.util.http.RequestHttp<okhttp3.OkHttpClient,me.chanjar.weixin.common.util.http.okhttp.OkHttpProxyInfo>public me.chanjar.weixin.common.util.http.okhttp.OkHttpProxyInfo getRequestHttpProxy()
getRequestHttpProxy in interface me.chanjar.weixin.common.util.http.RequestHttp<okhttp3.OkHttpClient,me.chanjar.weixin.common.util.http.okhttp.OkHttpProxyInfo>public me.chanjar.weixin.common.util.http.HttpType getRequestType()
getRequestType in interface me.chanjar.weixin.common.util.http.RequestHttp<okhttp3.OkHttpClient,me.chanjar.weixin.common.util.http.okhttp.OkHttpProxyInfo>public void initHttp()
initHttp in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic me.chanjar.weixin.common.util.http.RequestHttp getRequestHttp()
getRequestHttp in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic String getAccessToken(boolean forceRefresh) throws me.chanjar.weixin.common.error.WxErrorException
getAccessToken in interface cn.binarywang.wx.miniapp.api.WxMaServiceme.chanjar.weixin.common.error.WxErrorExceptionpublic cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult jsCode2SessionInfo(String jsCode) throws me.chanjar.weixin.common.error.WxErrorException
jsCode2SessionInfo in interface cn.binarywang.wx.miniapp.api.WxMaServiceme.chanjar.weixin.common.error.WxErrorExceptionpublic boolean checkSignature(String timestamp, String nonce, String signature)
checkSignature in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic String getAccessToken() throws me.chanjar.weixin.common.error.WxErrorException
getAccessToken in interface cn.binarywang.wx.miniapp.api.WxMaServiceme.chanjar.weixin.common.error.WxErrorExceptionpublic String get(String url, String queryParam) throws me.chanjar.weixin.common.error.WxErrorException
get in interface cn.binarywang.wx.miniapp.api.WxMaServiceme.chanjar.weixin.common.error.WxErrorExceptionpublic String post(String url, String postData) throws me.chanjar.weixin.common.error.WxErrorException
post in interface cn.binarywang.wx.miniapp.api.WxMaServiceme.chanjar.weixin.common.error.WxErrorExceptionpublic <T,E> T execute(me.chanjar.weixin.common.util.http.RequestExecutor<T,E> executor,
String uri,
E data)
throws me.chanjar.weixin.common.error.WxErrorException
execute in interface cn.binarywang.wx.miniapp.api.WxMaServiceme.chanjar.weixin.common.error.WxErrorExceptionpublic cn.binarywang.wx.miniapp.config.WxMaConfig getWxMaConfig()
getWxMaConfig in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic void setWxMaConfig(cn.binarywang.wx.miniapp.config.WxMaConfig wxConfigProvider)
setWxMaConfig in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic void setRetrySleepMillis(int retrySleepMillis)
setRetrySleepMillis in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic void setMaxRetryTimes(int maxRetryTimes)
setMaxRetryTimes in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaMsgService getMsgService()
getMsgService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaMediaService getMediaService()
getMediaService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaUserService getUserService()
getUserService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaQrcodeService getQrcodeService()
getQrcodeService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaTemplateService getTemplateService()
getTemplateService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaAnalysisService getAnalysisService()
getAnalysisService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaCodeService getCodeService()
getCodeService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaJsapiService getJsapiService()
getJsapiService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaSettingService getSettingService()
getSettingService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaShareService getShareService()
getShareService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaRunService getRunService()
getRunService in interface cn.binarywang.wx.miniapp.api.WxMaServicepublic cn.binarywang.wx.miniapp.api.WxMaSecCheckService getSecCheckService()
getSecCheckService in interface cn.binarywang.wx.miniapp.api.WxMaServiceCopyright © 2018–2019. All rights reserved.