public class WxCpCorpGroupDefaultConfigImpl extends Object implements WxCpCorpGroupConfigStorage, Serializable
构造器和说明 |
---|
WxCpCorpGroupDefaultConfigImpl() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
autoRefreshToken()
Auto refresh token boolean.
|
void |
expireCorpAccessToken(String corpId,
Integer agentId)
Expire access token.
|
Integer |
getAgentId()
Gets agent id.
|
ApacheHttpClientBuilder |
getApacheHttpClientBuilder()
Gets apache http client builder.
|
String |
getApiUrl(String path)
读取企业微信 API Url.
|
String |
getCorpAccessToken(String corpId,
Integer agentId)
授权企业的access token相关
|
WxAccessToken |
getCorpAccessTokenEntity(String corpId,
Integer agentId)
Gets access token entity.
|
Lock |
getCorpAccessTokenLock(String corpId,
Integer agentId)
Gets access token lock.
|
String |
getCorpId()
Gets corp id.
|
String |
getHttpProxyHost()
网络代理相关
|
String |
getHttpProxyPassword()
Gets http proxy password.
|
int |
getHttpProxyPort()
Gets http proxy port.
|
String |
getHttpProxyUsername()
Gets http proxy username.
|
boolean |
isCorpAccessTokenExpired(String corpId,
Integer agentId)
Is access token expired boolean.
|
void |
setAgentId(Integer agentId) |
void |
setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)
Sets apache http client builder.
|
void |
setBaseApiUrl(String baseUrl)
设置企业微信服务器 baseUrl.
|
void |
setCorpId(String corpId) |
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 |
updateCorpAccessToken(String corpId,
Integer agentId,
String corpAccessToken,
int expiresInSeconds)
Update corp access token.
|
public void setBaseApiUrl(String baseUrl)
WxCpCorpGroupConfigStorage
setBaseApiUrl
在接口中 WxCpCorpGroupConfigStorage
baseUrl
- 企业微信服务器 Urlpublic String getApiUrl(String path)
WxCpCorpGroupConfigStorage
getApiUrl
在接口中 WxCpCorpGroupConfigStorage
path
- the pathpublic String getCorpId()
WxCpCorpGroupConfigStorage
getCorpId
在接口中 WxCpCorpGroupConfigStorage
public void setCorpId(String corpId)
setCorpId
在接口中 WxCpCorpGroupConfigStorage
public Integer getAgentId()
WxCpCorpGroupConfigStorage
getAgentId
在接口中 WxCpCorpGroupConfigStorage
public void setAgentId(Integer agentId)
setAgentId
在接口中 WxCpCorpGroupConfigStorage
public void updateCorpAccessToken(String corpId, Integer agentId, String corpAccessToken, int expiresInSeconds)
WxCpCorpGroupConfigStorage
updateCorpAccessToken
在接口中 WxCpCorpGroupConfigStorage
corpAccessToken
- the corp access tokenexpiresInSeconds
- the expires in secondspublic String getCorpAccessToken(String corpId, Integer agentId)
WxCpCorpGroupConfigStorage
getCorpAccessToken
在接口中 WxCpCorpGroupConfigStorage
corpId
- the corp idpublic WxAccessToken getCorpAccessTokenEntity(String corpId, Integer agentId)
WxCpCorpGroupConfigStorage
getCorpAccessTokenEntity
在接口中 WxCpCorpGroupConfigStorage
corpId
- the corp idpublic boolean isCorpAccessTokenExpired(String corpId, Integer agentId)
WxCpCorpGroupConfigStorage
isCorpAccessTokenExpired
在接口中 WxCpCorpGroupConfigStorage
corpId
- the corp idpublic void expireCorpAccessToken(String corpId, Integer agentId)
WxCpCorpGroupConfigStorage
expireCorpAccessToken
在接口中 WxCpCorpGroupConfigStorage
corpId
- the corp idpublic String getHttpProxyHost()
WxCpCorpGroupConfigStorage
getHttpProxyHost
在接口中 WxCpCorpGroupConfigStorage
public void setHttpProxyHost(String httpProxyHost)
httpProxyHost
- the http proxy hostpublic int getHttpProxyPort()
WxCpCorpGroupConfigStorage
getHttpProxyPort
在接口中 WxCpCorpGroupConfigStorage
public void setHttpProxyPort(int httpProxyPort)
httpProxyPort
- the http proxy portpublic String getHttpProxyUsername()
WxCpCorpGroupConfigStorage
getHttpProxyUsername
在接口中 WxCpCorpGroupConfigStorage
public void setHttpProxyUsername(String httpProxyUsername)
httpProxyUsername
- the http proxy usernamepublic String getHttpProxyPassword()
WxCpCorpGroupConfigStorage
getHttpProxyPassword
在接口中 WxCpCorpGroupConfigStorage
public void setHttpProxyPassword(String httpProxyPassword)
httpProxyPassword
- the http proxy passwordpublic ApacheHttpClientBuilder getApacheHttpClientBuilder()
WxCpCorpGroupConfigStorage
getApacheHttpClientBuilder
在接口中 WxCpCorpGroupConfigStorage
public void setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)
apacheHttpClientBuilder
- the apache http client builderpublic boolean autoRefreshToken()
WxCpCorpGroupConfigStorage
autoRefreshToken
在接口中 WxCpCorpGroupConfigStorage
public Lock getCorpAccessTokenLock(String corpId, Integer agentId)
WxCpCorpGroupConfigStorage
getCorpAccessTokenLock
在接口中 WxCpCorpGroupConfigStorage
corpId
- the corp idCopyright © 2024. All rights reserved.