public class WxCpServiceJoddHttpImpl extends WxCpServiceAbstractImpl<jodd.http.HttpConnectionProvider,jodd.http.ProxyInfo>
| 限定符和类型 | 字段和说明 |
|---|---|
protected jodd.http.HttpConnectionProvider |
httpClient |
protected jodd.http.ProxyInfo |
httpProxy |
configStorage, globalAccessTokenRefreshLock, globalJsapiTicketRefreshLock, log, sessionManager, tmpDirFile| 构造器和说明 |
|---|
WxCpServiceJoddHttpImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAccessToken(boolean forceRefresh)
获取access_token,本方法线程安全
且在多线程同时刷新时只刷新一次,避免超出2000次/日的调用次数上限
另:本service的所有方法都会在access_token过期是调用此方法
程序员在非必要情况下尽量不要主动调用此方法
详情请见: http://mp.weixin.qq.com/wiki/index.php?
|
jodd.http.HttpConnectionProvider |
getRequestHttpClient() |
jodd.http.ProxyInfo |
getRequestHttpProxy() |
HttpType |
getRequestType() |
WxCpConfigStorage |
getWxCpConfigStorage()
获取WxMpConfigStorage 对象
|
void |
initHttp()
初始化http请求对象
|
checkSignature, createJsapiSignature, execute, executeInternal, get, getAccessToken, getAgentService, getCallbackIp, getDepartmentService, getJsapiTicket, getJsapiTicket, getMediaService, getMenuService, getOauth2Service, getRequestHttp, getSession, getSession, getTagService, getTaskResult, getTmpDirFile, getUserService, messageSend, post, replaceParty, replaceUser, setAgentService, setDepartmentService, setMaxRetryTimes, setMediaService, setMenuService, setOauth2Service, setRetrySleepMillis, setSessionManager, setTagService, setTmpDirFile, setUserService, setWxCpConfigStorageprotected jodd.http.HttpConnectionProvider httpClient
protected jodd.http.ProxyInfo httpProxy
public jodd.http.HttpConnectionProvider getRequestHttpClient()
public jodd.http.ProxyInfo getRequestHttpProxy()
public HttpType getRequestType()
public String getAccessToken(boolean forceRefresh) throws WxErrorException
WxCpService获取access_token,本方法线程安全 且在多线程同时刷新时只刷新一次,避免超出2000次/日的调用次数上限 另:本service的所有方法都会在access_token过期是调用此方法 程序员在非必要情况下尽量不要主动调用此方法 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=获取access_token
forceRefresh - 强制刷新WxErrorExceptionpublic void initHttp()
WxCpServicepublic WxCpConfigStorage getWxCpConfigStorage()
WxCpServiceCopyright © 2018. All rights reserved.