public class WxCpServiceApacheHttpClientImpl extends BaseWxCpServiceImpl<org.apache.http.impl.client.CloseableHttpClient,org.apache.http.HttpHost>
configStorage, globalAccessTokenRefreshLock, globalAgentJsapiTicketRefreshLock, globalJsapiTicketRefreshLock| 构造器和说明 |
|---|
WxCpServiceApacheHttpClientImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getAccessToken(boolean forceRefresh)
获取access_token,本方法线程安全
且在多线程同时刷新时只刷新一次,避免超出2000次/日的调用次数上限
另:本service的所有方法都会在access_token过期是调用此方法
程序员在非必要情况下尽量不要主动调用此方法
详情请见: http://mp.weixin.qq.com/wiki/index.php?
|
org.apache.http.impl.client.CloseableHttpClient |
getRequestHttpClient() |
org.apache.http.HttpHost |
getRequestHttpProxy() |
me.chanjar.weixin.common.util.http.HttpType |
getRequestType() |
WxCpConfigStorage |
getWxCpConfigStorage()
获取WxCpConfigStorage 对象
|
void |
initHttp()
初始化http请求对象
|
buildQrConnectUrl, checkSignature, createAgentJsapiSignature, createJsapiSignature, execute, executeInternal, get, getAccessToken, getAgentJsapiTicket, getAgentJsapiTicket, getAgentService, getCallbackIp, getChatService, getDepartmentService, getExternalContactService, getGroupRobotService, getJsapiTicket, getJsapiTicket, getKfService, getLivingService, getMediaService, getMenuService, getMessageService, getMsgAuditService, getOaAgentService, getOaCalendarService, getOaScheduleService, getOaService, getOauth2Service, getProviderToken, getRequestHttp, getSession, getSession, getSessionManager, getTagService, getTaskCardService, getTaskResult, getTmpDirFile, getUserService, getWorkBenchService, jsCode2Session, post, post, post, post, postWithoutToken, replaceParty, replaceUser, setAgentService, setDepartmentService, setKfService, setMaxRetryTimes, setMediaService, setMenuService, setOauth2Service, setRetrySleepMillis, setSessionManager, setTagService, setTmpDirFile, setUserService, setWxCpConfigStoragepublic org.apache.http.impl.client.CloseableHttpClient getRequestHttpClient()
public org.apache.http.HttpHost getRequestHttpProxy()
public me.chanjar.weixin.common.util.http.HttpType getRequestType()
public java.lang.String getAccessToken(boolean forceRefresh)
throws me.chanjar.weixin.common.error.WxErrorException
WxCpService获取access_token,本方法线程安全 且在多线程同时刷新时只刷新一次,避免超出2000次/日的调用次数上限 另:本service的所有方法都会在access_token过期是调用此方法 程序员在非必要情况下尽量不要主动调用此方法 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=获取access_token
forceRefresh - 强制刷新me.chanjar.weixin.common.error.WxErrorException - the wx error exceptionpublic void initHttp()
WxCpServicepublic WxCpConfigStorage getWxCpConfigStorage()
WxCpService