#307 微信支付模块中增加http proxy设置的支持

This commit is contained in:
Binary Wang
2017-08-23 00:02:16 +08:00
parent 3bc9dbd795
commit e75ef7f3ce
2 changed files with 52 additions and 0 deletions

View File

@@ -39,6 +39,10 @@ public class WxPayConfig {
private SSLContext sslContext;
private String keyPath;
private boolean useSandboxEnv = false;
private String httpProxyHost;
private Integer httpProxyPort;
private String httpProxyUsername;
private String httpProxyPassword;
public String getKeyPath() {
return keyPath;
@@ -227,4 +231,36 @@ public class WxPayConfig {
public void setHttpTimeout(int httpTimeout) {
this.httpTimeout = httpTimeout;
}
public String getHttpProxyHost() {
return httpProxyHost;
}
public void setHttpProxyHost(String httpProxyHost) {
this.httpProxyHost = httpProxyHost;
}
public Integer getHttpProxyPort() {
return httpProxyPort;
}
public void setHttpProxyPort(Integer httpProxyPort) {
this.httpProxyPort = httpProxyPort;
}
public String getHttpProxyUsername() {
return httpProxyUsername;
}
public void setHttpProxyUsername(String httpProxyUsername) {
this.httpProxyUsername = httpProxyUsername;
}
public String getHttpProxyPassword() {
return httpProxyPassword;
}
public void setHttpProxyPassword(String httpProxyPassword) {
this.httpProxyPassword = httpProxyPassword;
}
}