@@ -24,28 +24,72 @@ public interface WxCpConfigStorage {
24
24
/**
25
25
* 读取企业微信 API Url.
26
26
* 支持私有化企业微信服务器.
27
+ *
28
+ * @param path the path
29
+ * @return the api url
27
30
*/
28
31
String getApiUrl (String path );
29
32
33
+ /**
34
+ * Gets access token.
35
+ *
36
+ * @return the access token
37
+ */
30
38
String getAccessToken ();
31
39
40
+ /**
41
+ * Gets access token lock.
42
+ *
43
+ * @return the access token lock
44
+ */
32
45
Lock getAccessTokenLock ();
33
46
47
+ /**
48
+ * Is access token expired boolean.
49
+ *
50
+ * @return the boolean
51
+ */
34
52
boolean isAccessTokenExpired ();
35
53
36
54
/**
37
55
* 强制将access token过期掉.
38
56
*/
39
57
void expireAccessToken ();
40
58
59
+ /**
60
+ * Update access token.
61
+ *
62
+ * @param accessToken the access token
63
+ */
41
64
void updateAccessToken (WxAccessToken accessToken );
42
65
66
+ /**
67
+ * Update access token.
68
+ *
69
+ * @param accessToken the access token
70
+ * @param expiresIn the expires in
71
+ */
43
72
void updateAccessToken (String accessToken , int expiresIn );
44
73
74
+ /**
75
+ * Gets jsapi ticket.
76
+ *
77
+ * @return the jsapi ticket
78
+ */
45
79
String getJsapiTicket ();
46
80
81
+ /**
82
+ * Gets jsapi ticket lock.
83
+ *
84
+ * @return the jsapi ticket lock
85
+ */
47
86
Lock getJsapiTicketLock ();
48
87
88
+ /**
89
+ * Is jsapi ticket expired boolean.
90
+ *
91
+ * @return the boolean
92
+ */
49
93
boolean isJsapiTicketExpired ();
50
94
51
95
/**
@@ -55,13 +99,31 @@ public interface WxCpConfigStorage {
55
99
56
100
/**
57
101
* 应该是线程安全的.
102
+ *
103
+ * @param jsapiTicket the jsapi ticket
104
+ * @param expiresInSeconds the expires in seconds
58
105
*/
59
106
void updateJsapiTicket (String jsapiTicket , int expiresInSeconds );
60
107
108
+ /**
109
+ * Gets agent jsapi ticket.
110
+ *
111
+ * @return the agent jsapi ticket
112
+ */
61
113
String getAgentJsapiTicket ();
62
114
115
+ /**
116
+ * Gets agent jsapi ticket lock.
117
+ *
118
+ * @return the agent jsapi ticket lock
119
+ */
63
120
Lock getAgentJsapiTicketLock ();
64
121
122
+ /**
123
+ * Is agent jsapi ticket expired boolean.
124
+ *
125
+ * @return the boolean
126
+ */
65
127
boolean isAgentJsapiTicketExpired ();
66
128
67
129
/**
@@ -71,51 +133,114 @@ public interface WxCpConfigStorage {
71
133
72
134
/**
73
135
* 应该是线程安全的.
136
+ *
137
+ * @param jsapiTicket the jsapi ticket
138
+ * @param expiresInSeconds the expires in seconds
74
139
*/
75
140
void updateAgentJsapiTicket (String jsapiTicket , int expiresInSeconds );
76
141
142
+ /**
143
+ * Gets corp id.
144
+ *
145
+ * @return the corp id
146
+ */
77
147
String getCorpId ();
78
148
149
+ /**
150
+ * Gets corp secret.
151
+ *
152
+ * @return the corp secret
153
+ */
79
154
String getCorpSecret ();
80
155
156
+ /**
157
+ * Gets agent id.
158
+ *
159
+ * @return the agent id
160
+ */
81
161
Integer getAgentId ();
82
162
163
+ /**
164
+ * Gets token.
165
+ *
166
+ * @return the token
167
+ */
83
168
String getToken ();
84
169
170
+ /**
171
+ * Gets aes key.
172
+ *
173
+ * @return the aes key
174
+ */
85
175
String getAesKey ();
86
176
177
+ /**
178
+ * Gets expires time.
179
+ *
180
+ * @return the expires time
181
+ */
87
182
long getExpiresTime ();
88
183
184
+ /**
185
+ * Gets oauth 2 redirect uri.
186
+ *
187
+ * @return the oauth 2 redirect uri
188
+ */
89
189
String getOauth2redirectUri ();
90
190
191
+ /**
192
+ * Gets http proxy host.
193
+ *
194
+ * @return the http proxy host
195
+ */
91
196
String getHttpProxyHost ();
92
197
198
+ /**
199
+ * Gets http proxy port.
200
+ *
201
+ * @return the http proxy port
202
+ */
93
203
int getHttpProxyPort ();
94
204
205
+ /**
206
+ * Gets http proxy username.
207
+ *
208
+ * @return the http proxy username
209
+ */
95
210
String getHttpProxyUsername ();
96
211
212
+ /**
213
+ * Gets http proxy password.
214
+ *
215
+ * @return the http proxy password
216
+ */
97
217
String getHttpProxyPassword ();
98
218
219
+ /**
220
+ * Gets tmp dir file.
221
+ *
222
+ * @return the tmp dir file
223
+ */
99
224
File getTmpDirFile ();
100
225
101
226
/**
102
227
* http client builder.
103
228
*
104
- * @return ApacheHttpClientBuilder
229
+ * @return ApacheHttpClientBuilder apache http client builder
105
230
*/
106
231
ApacheHttpClientBuilder getApacheHttpClientBuilder ();
107
232
108
233
/**
109
234
* 是否自动刷新token
110
235
*
111
- * @return .
236
+ * @return . boolean
112
237
*/
113
238
boolean autoRefreshToken ();
114
239
115
240
/**
116
241
* 获取群机器人webhook的key
117
242
*
118
- * @return key
243
+ * @return key webhook key
119
244
*/
120
245
String getWebhookKey ();
121
246
}
0 commit comments