public class WxMpMapConfigImpl extends WxMpDefaultConfigImpl
accessToken, accessTokenLock, aesKey, apacheHttpClientBuilder, appId, cardApiTicket, cardApiTicketExpiresTime, cardApiTicketLock, expiresTime, httpProxyHost, httpProxyPassword, httpProxyPort, httpProxyUsername, jsapiTicket, jsapiTicketExpiresTime, jsapiTicketLock, maxRetryTimes, oauth2redirectUri, retrySleepMillis, sdkTicket, sdkTicketExpiresTime, sdkTicketLock, secret, templateId, tmpDirFile, token
构造器和说明 |
---|
WxMpMapConfigImpl() |
限定符和类型 | 方法和说明 |
---|---|
String |
getAccessToken()
Gets access token.
|
void |
setAccessToken(String accessToken) |
void |
updateAccessToken(String accessToken,
int expiresInSeconds)
应该是线程安全的.
|
void |
updateAccessToken(WxAccessToken accessToken)
应该是线程安全的.
|
autoRefreshToken, expireAccessToken, expireTicket, getHostConfig, getTicket, getTicketLock, isAccessTokenExpired, isStableAccessToken, isTicketExpired, setHostConfig, setTicket, toString, updateTicket, useStableAccessToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAccessTokenLock, getAesKey, getApacheHttpClientBuilder, getAppId, getExpiresTime, getHttpProxyHost, getHttpProxyPassword, getHttpProxyPort, getHttpProxyUsername, getMaxRetryTimes, getOauth2redirectUri, getRetrySleepMillis, getSecret, getTemplateId, getTmpDirFile, getToken
public String getAccessToken()
WxMpConfigStorage
public void setAccessToken(String accessToken)
public void updateAccessToken(WxAccessToken accessToken)
WxMpConfigStorage
updateAccessToken
在接口中 WxMpConfigStorage
updateAccessToken
在类中 WxMpDefaultConfigImpl
accessToken
- 要更新的WxAccessToken对象public void updateAccessToken(String accessToken, int expiresInSeconds)
WxMpConfigStorage
updateAccessToken
在接口中 WxMpConfigStorage
updateAccessToken
在类中 WxMpDefaultConfigImpl
accessToken
- 新的accessToken值expiresInSeconds
- 过期时间,以秒为单位Copyright © 2023. All rights reserved.