4
4
import me .chanjar .weixin .common .util .http .ApacheHttpClientBuilder ;
5
5
6
6
import javax .net .ssl .SSLContext ;
7
+
8
+ import org .apache .commons .lang3 .builder .ToStringBuilder ;
9
+ import org .apache .commons .lang3 .builder .ToStringStyle ;
10
+
7
11
import java .io .File ;
8
12
9
13
/**
@@ -24,10 +28,10 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage {
24
28
25
29
protected volatile String oauth2redirectUri ;
26
30
27
- protected volatile String http_proxy_host ;
28
- protected volatile int http_proxy_port ;
29
- protected volatile String http_proxy_username ;
30
- protected volatile String http_proxy_password ;
31
+ protected volatile String httpProxyHost ;
32
+ protected volatile int httpProxyPort ;
33
+ protected volatile String httpProxyUsername ;
34
+ protected volatile String httpProxyPassword ;
31
35
32
36
protected volatile String jsapiTicket ;
33
37
protected volatile long jsapiTicketExpiresTime ;
@@ -187,63 +191,41 @@ public void setOauth2redirectUri(String oauth2redirectUri) {
187
191
this .oauth2redirectUri = oauth2redirectUri ;
188
192
}
189
193
190
- @ Override
191
- public String getHttp_proxy_host () {
192
- return this .http_proxy_host ;
194
+ public String getHttpProxyHost () {
195
+ return this .httpProxyHost ;
193
196
}
194
197
195
- public void setHttp_proxy_host (String http_proxy_host ) {
196
- this .http_proxy_host = http_proxy_host ;
198
+ public void setHttpProxyHost (String httpProxyHost ) {
199
+ this .httpProxyHost = httpProxyHost ;
197
200
}
198
201
199
- @ Override
200
- public int getHttp_proxy_port () {
201
- return this .http_proxy_port ;
202
+ public int getHttpProxyPort () {
203
+ return this .httpProxyPort ;
202
204
}
203
205
204
- public void setHttp_proxy_port (int http_proxy_port ) {
205
- this .http_proxy_port = http_proxy_port ;
206
+ public void setHttpProxyPort (int httpProxyPort ) {
207
+ this .httpProxyPort = httpProxyPort ;
206
208
}
207
209
208
- @ Override
209
- public String getHttp_proxy_username () {
210
- return this .http_proxy_username ;
210
+ public String getHttpProxyUsername () {
211
+ return this .httpProxyUsername ;
211
212
}
212
213
213
- public void setHttp_proxy_username (String http_proxy_username ) {
214
- this .http_proxy_username = http_proxy_username ;
214
+ public void setHttpProxyUsername (String httpProxyUsername ) {
215
+ this .httpProxyUsername = httpProxyUsername ;
215
216
}
216
217
217
- @ Override
218
- public String getHttp_proxy_password () {
219
- return this .http_proxy_password ;
218
+ public String getHttpProxyPassword () {
219
+ return this .httpProxyPassword ;
220
220
}
221
221
222
- public void setHttp_proxy_password (String http_proxy_password ) {
223
- this .http_proxy_password = http_proxy_password ;
222
+ public void setHttpProxyPassword (String httpProxyPassword ) {
223
+ this .httpProxyPassword = httpProxyPassword ;
224
224
}
225
225
226
226
@ Override
227
227
public String toString () {
228
- return "WxMpInMemoryConfigStorage{" +
229
- "appId='" + this .appId + '\'' +
230
- ", secret='" + this .secret + '\'' +
231
- ", token='" + this .token + '\'' +
232
- ", partnerId='" + this .partnerId + '\'' +
233
- ", partnerKey='" + this .partnerKey + '\'' +
234
- ", accessToken='" + this .accessToken + '\'' +
235
- ", aesKey='" + this .aesKey + '\'' +
236
- ", expiresTime=" + this .expiresTime +
237
- ", http_proxy_host='" + this .http_proxy_host + '\'' +
238
- ", http_proxy_port=" + this .http_proxy_port +
239
- ", http_proxy_username='" + this .http_proxy_username + '\'' +
240
- ", http_proxy_password='" + this .http_proxy_password + '\'' +
241
- ", jsapiTicket='" + this .jsapiTicket + '\'' +
242
- ", jsapiTicketExpiresTime='" + this .jsapiTicketExpiresTime + '\'' +
243
- ", cardApiTicket='" + this .cardApiTicket + '\'' +
244
- ", cardApiTicketExpiresTime='" + this .cardApiTicketExpiresTime + '\'' +
245
- ", tmpDirFile='" + this .tmpDirFile + '\'' +
246
- '}' ;
228
+ return ToStringBuilder .reflectionToString (this ,ToStringStyle .JSON_STYLE );
247
229
}
248
230
249
231
@ Override
0 commit comments