public interface WxMpConfigStorage
限定符和类型 | 方法和说明 |
---|---|
boolean |
autoRefreshToken()
是否自动刷新token.
|
void |
expireAccessToken()
强制将access token过期掉.
|
void |
expireTicket(TicketType type)
强制将ticket过期掉.
|
String |
getAccessToken()
Gets access token.
|
Lock |
getAccessTokenLock()
Gets access token lock.
|
String |
getAesKey()
Gets aes key.
|
ApacheHttpClientBuilder |
getApacheHttpClientBuilder()
http client builder.
|
String |
getAppId()
Gets app id.
|
long |
getExpiresTime()
Gets expires time.
|
WxMpHostConfig |
getHostConfig()
得到微信接口地址域名部分的自定义设置信息.
|
String |
getHttpProxyHost()
Gets http proxy host.
|
String |
getHttpProxyPassword()
Gets http proxy password.
|
int |
getHttpProxyPort()
Gets http proxy port.
|
String |
getHttpProxyUsername()
Gets http proxy username.
|
int |
getMaxRetryTimes()
http 请求最大重试次数
BaseWxMpServiceImpl.setMaxRetryTimes(int)
|
String |
getOauth2redirectUri()
已过时。
This method is deprecated due to incorrect naming convention.
Use
getOauth2RedirectUrl() instead. |
String |
getOauth2RedirectUrl()
Gets OAuth 2.0 redirect Url
|
String |
getQrConnectRedirectUrl()
Gets QR connect redirect Url
|
int |
getRetrySleepMillis()
http 请求重试间隔
BaseWxMpServiceImpl.setRetrySleepMillis(int)
|
String |
getSecret()
Gets secret.
|
String |
getTemplateId()
Gets template id.
|
String |
getTicket(TicketType type)
Gets ticket.
|
Lock |
getTicketLock(TicketType type)
Gets ticket lock.
|
File |
getTmpDirFile()
Gets tmp dir file.
|
String |
getToken()
Gets token.
|
boolean |
isAccessTokenExpired()
Is access token expired boolean.
|
boolean |
isStableAccessToken()
Is use stable access token api
|
boolean |
isTicketExpired(TicketType type)
Is ticket expired boolean.
|
void |
setHostConfig(WxMpHostConfig hostConfig)
设置微信接口地址域名部分的自定义设置信息.
|
void |
updateAccessToken(String accessToken,
int expiresInSeconds)
应该是线程安全的.
|
void |
updateAccessToken(WxAccessToken accessToken)
应该是线程安全的.
|
void |
updateTicket(TicketType type,
String ticket,
int expiresInSeconds)
更新ticket.
|
void |
useStableAccessToken(boolean useStableAccessToken)
Set use stable access token api
|
String getAccessToken()
boolean isStableAccessToken()
void useStableAccessToken(boolean useStableAccessToken)
useStableAccessToken
- true is use, false is notLock getAccessTokenLock()
boolean isAccessTokenExpired()
void expireAccessToken()
void updateAccessToken(WxAccessToken accessToken)
accessToken
- 要更新的WxAccessToken对象void updateAccessToken(String accessToken, int expiresInSeconds)
accessToken
- 新的accessToken值expiresInSeconds
- 过期时间,以秒为单位String getTicket(TicketType type)
type
- the typeLock getTicketLock(TicketType type)
type
- the typeboolean isTicketExpired(TicketType type)
type
- the typevoid expireTicket(TicketType type)
type
- the typevoid updateTicket(TicketType type, String ticket, int expiresInSeconds)
type
- ticket类型ticket
- 新的ticket值expiresInSeconds
- 过期时间,以秒为单位String getAppId()
String getSecret()
String getToken()
String getAesKey()
String getTemplateId()
long getExpiresTime()
@Deprecated String getOauth2redirectUri()
getOauth2RedirectUrl()
instead.String getOauth2RedirectUrl()
String getQrConnectRedirectUrl()
String getHttpProxyHost()
int getHttpProxyPort()
String getHttpProxyUsername()
String getHttpProxyPassword()
int getRetrySleepMillis()
BaseWxMpServiceImpl.setRetrySleepMillis(int)
int getMaxRetryTimes()
BaseWxMpServiceImpl.setMaxRetryTimes(int)
File getTmpDirFile()
ApacheHttpClientBuilder getApacheHttpClientBuilder()
boolean autoRefreshToken()
WxMpHostConfig getHostConfig()
void setHostConfig(WxMpHostConfig hostConfig)
hostConfig
- host configCopyright © 2024. All rights reserved.