public class WxCpDefaultConfigImpl extends Object implements WxCpConfigStorage, Serializable
| 限定符和类型 | 字段和说明 | 
|---|---|
| protected String | accessTokenThe Access token. | 
| protected Lock | accessTokenLockThe Access token lock. | 
| protected Integer | agentIdThe Agent id. | 
| protected Lock | agentJsapiTicketLockThe Agent jsapi ticket lock. | 
| protected Lock | jsapiTicketLockThe Jsapi ticket lock. | 
| 构造器和说明 | 
|---|
| WxCpDefaultConfigImpl() | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| boolean | autoRefreshToken()是否自动刷新token | 
| void | expireAccessToken()强制将access token过期掉. | 
| void | expireAgentJsapiTicket()强制将jsapi ticket过期掉. | 
| void | expireJsapiTicket()强制将jsapi ticket过期掉. | 
| String | getAccessToken()Gets access token. | 
| Lock | getAccessTokenLock()Gets access token lock. | 
| String | getAesKey()Gets aes key. | 
| Integer | getAgentId()Gets agent id. | 
| String | getAgentJsapiTicket()Gets agent jsapi ticket. | 
| Lock | getAgentJsapiTicketLock()Gets agent jsapi ticket lock. | 
| ApacheHttpClientBuilder | getApacheHttpClientBuilder()http client builder. | 
| String | getApiUrl(String path)读取企业微信 API Url. | 
| String | getCorpId()Gets corp id. | 
| String | getCorpSecret()Gets corp secret. | 
| long | getExpiresTime()Gets expires time. | 
| String | getHttpProxyHost()Gets http proxy host. | 
| String | getHttpProxyPassword()Gets http proxy password. | 
| int | getHttpProxyPort()Gets http proxy port. | 
| String | getHttpProxyUsername()Gets http proxy username. | 
| String | getJsapiTicket()Gets jsapi ticket. | 
| long | getJsapiTicketExpiresTime()Gets jsapi ticket expires time. | 
| Lock | getJsapiTicketLock()Gets jsapi ticket lock. | 
| String | getMsgAuditLibPath()获取企微会话存档系统库 绝对路径 | 
| String | getMsgAuditPriKey()企微会话存档私钥 | 
| String | getMsgAuditSecret()获取会话存档的secret | 
| String | getOauth2redirectUri()Gets oauth 2 redirect uri. | 
| File | getTmpDirFile()Gets tmp dir file. | 
| String | getToken()Gets token. | 
| String | getWebhookKey()获取群机器人webhook的key | 
| boolean | isAccessTokenExpired()Is access token expired boolean. | 
| boolean | isAgentJsapiTicketExpired()Is agent jsapi ticket expired boolean. | 
| boolean | isJsapiTicketExpired()Is jsapi ticket expired boolean. | 
| void | setAccessToken(String accessToken)Sets access token. | 
| void | setAesKey(String aesKey)Sets aes key. | 
| void | setAgentId(Integer agentId)Sets agent id. | 
| void | setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)Sets apache http client builder. | 
| void | setBaseApiUrl(String baseUrl)设置企业微信服务器 baseUrl. | 
| void | setCorpId(String corpId)Sets corp id. | 
| void | setCorpSecret(String corpSecret)Sets corp secret. | 
| void | setExpiresTime(long expiresTime)Sets expires time. | 
| void | setHttpProxyHost(String httpProxyHost)Sets http proxy host. | 
| void | setHttpProxyPassword(String httpProxyPassword)Sets http proxy password. | 
| void | setHttpProxyPort(int httpProxyPort)Sets http proxy port. | 
| void | setHttpProxyUsername(String httpProxyUsername)Sets http proxy username. | 
| void | setJsapiTicket(String jsapiTicket)Sets jsapi ticket. | 
| void | setJsapiTicketExpiresTime(long jsapiTicketExpiresTime)Sets jsapi ticket expires time. | 
| void | setMsgAuditLibPath(String msgAuditLibPath)设置企微会话存档路径. | 
| void | setMsgAuditPriKey(String msgAuditPriKey)设置会话存档私钥 | 
| WxCpDefaultConfigImpl | setMsgAuditSecret(String msgAuditSecret)设置会话存档secret | 
| void | setOauth2redirectUri(String oauth2redirectUri)Sets oauth 2 redirect uri. | 
| void | setTmpDirFile(File tmpDirFile)Sets tmp dir file. | 
| void | setToken(String token)Sets token. | 
| WxCpDefaultConfigImpl | setWebhookKey(String webhookKey)Sets webhook key. | 
| String | toString() | 
| void | updateAccessToken(String accessToken,
                 int expiresInSeconds)Update access token. | 
| void | updateAccessToken(WxAccessToken accessToken)Update access token. | 
| void | updateAgentJsapiTicket(String jsapiTicket,
                      int expiresInSeconds)应该是线程安全的. | 
| void | updateJsapiTicket(String jsapiTicket,
                 int expiresInSeconds)应该是线程安全的. | 
protected volatile String accessToken
protected transient Lock accessTokenLock
protected volatile Integer agentId
protected transient Lock jsapiTicketLock
protected transient Lock agentJsapiTicketLock
public void setBaseApiUrl(String baseUrl)
WxCpConfigStoragesetBaseApiUrl 在接口中 WxCpConfigStoragebaseUrl - 企业微信服务器 Urlpublic String getApiUrl(String path)
WxCpConfigStoragegetApiUrl 在接口中 WxCpConfigStoragepath - the pathpublic String getAccessToken()
WxCpConfigStoragegetAccessToken 在接口中 WxCpConfigStoragepublic void setAccessToken(String accessToken)
accessToken - the access tokenpublic Lock getAccessTokenLock()
WxCpConfigStoragegetAccessTokenLock 在接口中 WxCpConfigStoragepublic boolean isAccessTokenExpired()
WxCpConfigStorageisAccessTokenExpired 在接口中 WxCpConfigStoragepublic void expireAccessToken()
WxCpConfigStorageexpireAccessToken 在接口中 WxCpConfigStoragepublic void updateAccessToken(WxAccessToken accessToken)
WxCpConfigStorageupdateAccessToken 在接口中 WxCpConfigStorageaccessToken - the access tokenpublic void updateAccessToken(String accessToken, int expiresInSeconds)
WxCpConfigStorageupdateAccessToken 在接口中 WxCpConfigStorageaccessToken - the access tokenexpiresInSeconds - the expires inpublic String getJsapiTicket()
WxCpConfigStoragegetJsapiTicket 在接口中 WxCpConfigStoragepublic void setJsapiTicket(String jsapiTicket)
jsapiTicket - the jsapi ticketpublic Lock getJsapiTicketLock()
WxCpConfigStoragegetJsapiTicketLock 在接口中 WxCpConfigStoragepublic long getJsapiTicketExpiresTime()
public void setJsapiTicketExpiresTime(long jsapiTicketExpiresTime)
jsapiTicketExpiresTime - the jsapi ticket expires timepublic boolean isJsapiTicketExpired()
WxCpConfigStorageisJsapiTicketExpired 在接口中 WxCpConfigStoragepublic void updateJsapiTicket(String jsapiTicket, int expiresInSeconds)
WxCpConfigStorageupdateJsapiTicket 在接口中 WxCpConfigStoragejsapiTicket - the jsapi ticketexpiresInSeconds - the expires in secondspublic String getAgentJsapiTicket()
WxCpConfigStoragegetAgentJsapiTicket 在接口中 WxCpConfigStoragepublic Lock getAgentJsapiTicketLock()
WxCpConfigStoragegetAgentJsapiTicketLock 在接口中 WxCpConfigStoragepublic boolean isAgentJsapiTicketExpired()
WxCpConfigStorageisAgentJsapiTicketExpired 在接口中 WxCpConfigStoragepublic void expireAgentJsapiTicket()
WxCpConfigStorageexpireAgentJsapiTicket 在接口中 WxCpConfigStoragepublic void updateAgentJsapiTicket(String jsapiTicket, int expiresInSeconds)
WxCpConfigStorageupdateAgentJsapiTicket 在接口中 WxCpConfigStoragejsapiTicket - the jsapi ticketexpiresInSeconds - the expires in secondspublic void expireJsapiTicket()
WxCpConfigStorageexpireJsapiTicket 在接口中 WxCpConfigStoragepublic String getCorpId()
WxCpConfigStoragegetCorpId 在接口中 WxCpConfigStoragepublic void setCorpId(String corpId)
corpId - the corp idpublic String getCorpSecret()
WxCpConfigStoragegetCorpSecret 在接口中 WxCpConfigStoragepublic void setCorpSecret(String corpSecret)
corpSecret - the corp secretpublic String getToken()
WxCpConfigStoragegetToken 在接口中 WxCpConfigStoragepublic void setToken(String token)
token - the tokenpublic long getExpiresTime()
WxCpConfigStoragegetExpiresTime 在接口中 WxCpConfigStoragepublic void setExpiresTime(long expiresTime)
expiresTime - the expires timepublic String getAesKey()
WxCpConfigStoragegetAesKey 在接口中 WxCpConfigStoragepublic String getMsgAuditPriKey()
WxCpConfigStoragegetMsgAuditPriKey 在接口中 WxCpConfigStoragepublic String getMsgAuditLibPath()
WxCpConfigStoragegetMsgAuditLibPath 在接口中 WxCpConfigStoragepublic void setAesKey(String aesKey)
aesKey - the aes keypublic Integer getAgentId()
WxCpConfigStoragegetAgentId 在接口中 WxCpConfigStoragepublic void setAgentId(Integer agentId)
agentId - the agent idpublic void setMsgAuditLibPath(String msgAuditLibPath)
msgAuditLibPath - 会话存档具体路径public void setMsgAuditPriKey(String msgAuditPriKey)
msgAuditPriKey - 会话存档私钥public String getOauth2redirectUri()
WxCpConfigStoragegetOauth2redirectUri 在接口中 WxCpConfigStoragepublic void setOauth2redirectUri(String oauth2redirectUri)
oauth2redirectUri - the oauth 2 redirect uripublic String getHttpProxyHost()
WxCpConfigStoragegetHttpProxyHost 在接口中 WxCpConfigStoragepublic void setHttpProxyHost(String httpProxyHost)
httpProxyHost - the http proxy hostpublic int getHttpProxyPort()
WxCpConfigStoragegetHttpProxyPort 在接口中 WxCpConfigStoragepublic void setHttpProxyPort(int httpProxyPort)
httpProxyPort - the http proxy portpublic String getHttpProxyUsername()
WxCpConfigStoragegetHttpProxyUsername 在接口中 WxCpConfigStoragepublic void setHttpProxyUsername(String httpProxyUsername)
httpProxyUsername - the http proxy usernamepublic String getHttpProxyPassword()
WxCpConfigStoragegetHttpProxyPassword 在接口中 WxCpConfigStoragepublic void setHttpProxyPassword(String httpProxyPassword)
httpProxyPassword - the http proxy passwordpublic File getTmpDirFile()
WxCpConfigStoragegetTmpDirFile 在接口中 WxCpConfigStoragepublic void setTmpDirFile(File tmpDirFile)
tmpDirFile - the tmp dir filepublic ApacheHttpClientBuilder getApacheHttpClientBuilder()
WxCpConfigStoragegetApacheHttpClientBuilder 在接口中 WxCpConfigStoragepublic void setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)
apacheHttpClientBuilder - the apache http client builderpublic boolean autoRefreshToken()
WxCpConfigStorageautoRefreshToken 在接口中 WxCpConfigStoragepublic String getWebhookKey()
WxCpConfigStoragegetWebhookKey 在接口中 WxCpConfigStoragepublic WxCpDefaultConfigImpl setWebhookKey(String webhookKey)
webhookKey - the webhook keypublic String getMsgAuditSecret()
WxCpConfigStoragegetMsgAuditSecret 在接口中 WxCpConfigStoragepublic WxCpDefaultConfigImpl setMsgAuditSecret(String msgAuditSecret)
msgAuditSecret - Copyright © 2024. All rights reserved.