public class WxCpServiceOnTpImpl extends WxCpServiceApacheHttpClientImpl
默认接口实现类,使用apache httpclient实现,配合第三方应用service使用 Created by zhenjun cai.
configStorage, globalAccessTokenRefreshLock, globalAgentJsapiTicketRefreshLock, globalJsapiTicketRefreshLock
构造器和说明 |
---|
WxCpServiceOnTpImpl() |
限定符和类型 | 方法和说明 |
---|---|
String |
getAccessToken(boolean forceRefresh)
获取access_token,本方法线程安全
且在多线程同时刷新时只刷新一次,避免超出2000次/日的调用次数上限
另:本service的所有方法都会在access_token过期是调用此方法
程序员在非必要情况下尽量不要主动调用此方法
详情请见: http://mp.weixin.qq.com/wiki/index.php?
|
getRequestHttpClient, getRequestHttpProxy, getRequestType, getWxCpConfigStorage, initHttp
buildQrConnectUrl, checkSignature, createAgentJsapiSignature, createJsapiSignature, execute, executeInternal, get, getAccessToken, getAgentJsapiTicket, getAgentJsapiTicket, getAgentService, getApiDomainIp, getCallbackIp, getChatService, getCorpGroupService, getDepartmentService, getExportService, getExternalContactService, getGroupRobotService, getJsapiTicket, getJsapiTicket, getKfService, getLivingService, getMediaService, getMeetingService, getMenuService, getMessageService, getMsgAuditService, getOaAgentService, getOaCalendarService, getOaMeetingRoomService, getOaScheduleService, getOaService, getOauth2Service, getOaWeDriveService, getProviderToken, getRequestHttp, getSchoolHealthService, getSchoolService, getSchoolUserService, getSession, getSession, getSessionManager, getTagService, getTaskCardService, getTaskResult, getTmpDirFile, getUserService, getWorkBenchService, jsCode2Session, post, post, post, post, postWithoutToken, replaceParty, replaceUser, setAgentService, setDepartmentService, setExportService, setKfService, setMaxRetryTimes, setMediaService, setMenuService, setOauth2Service, setRetrySleepMillis, setSessionManager, setTagService, setTmpDirFile, setUserService, setWxCpConfigStorage, syncUser, upload
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
getAccessToken
在接口中 WxCpService
getAccessToken
在类中 WxCpServiceApacheHttpClientImpl
forceRefresh
- 强制刷新WxErrorException
- the wx error exceptionCopyright © 2024. All rights reserved.