规范代码命名格式

This commit is contained in:
BinaryWang 2016-08-13 10:46:45 +08:00
parent c2f00a1ac0
commit 4bd7e613f0
2 changed files with 29 additions and 47 deletions

View File

@ -81,13 +81,13 @@ public interface WxMpConfigStorage {
String getOauth2redirectUri(); String getOauth2redirectUri();
String getHttp_proxy_host(); String getHttpProxyHost();
int getHttp_proxy_port(); int getHttpProxyPort();
String getHttp_proxy_username(); String getHttpProxyUsername();
String getHttp_proxy_password(); String getHttpProxyPassword();
File getTmpDirFile(); File getTmpDirFile();

View File

@ -4,6 +4,10 @@ import me.chanjar.weixin.common.bean.WxAccessToken;
import me.chanjar.weixin.common.util.http.ApacheHttpClientBuilder; import me.chanjar.weixin.common.util.http.ApacheHttpClientBuilder;
import javax.net.ssl.SSLContext; import javax.net.ssl.SSLContext;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.File; import java.io.File;
/** /**
@ -24,10 +28,10 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage {
protected volatile String oauth2redirectUri; protected volatile String oauth2redirectUri;
protected volatile String http_proxy_host; protected volatile String httpProxyHost;
protected volatile int http_proxy_port; protected volatile int httpProxyPort;
protected volatile String http_proxy_username; protected volatile String httpProxyUsername;
protected volatile String http_proxy_password; protected volatile String httpProxyPassword;
protected volatile String jsapiTicket; protected volatile String jsapiTicket;
protected volatile long jsapiTicketExpiresTime; protected volatile long jsapiTicketExpiresTime;
@ -187,63 +191,41 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage {
this.oauth2redirectUri = oauth2redirectUri; this.oauth2redirectUri = oauth2redirectUri;
} }
@Override public String getHttpProxyHost() {
public String getHttp_proxy_host() { return this.httpProxyHost;
return this.http_proxy_host;
} }
public void setHttp_proxy_host(String http_proxy_host) { public void setHttpProxyHost(String httpProxyHost) {
this.http_proxy_host = http_proxy_host; this.httpProxyHost = httpProxyHost;
} }
@Override public int getHttpProxyPort() {
public int getHttp_proxy_port() { return this.httpProxyPort;
return this.http_proxy_port;
} }
public void setHttp_proxy_port(int http_proxy_port) { public void setHttpProxyPort(int httpProxyPort) {
this.http_proxy_port = http_proxy_port; this.httpProxyPort = httpProxyPort;
} }
@Override public String getHttpProxyUsername() {
public String getHttp_proxy_username() { return this.httpProxyUsername;
return this.http_proxy_username;
} }
public void setHttp_proxy_username(String http_proxy_username) { public void setHttpProxyUsername(String httpProxyUsername) {
this.http_proxy_username = http_proxy_username; this.httpProxyUsername = httpProxyUsername;
} }
@Override public String getHttpProxyPassword() {
public String getHttp_proxy_password() { return this.httpProxyPassword;
return this.http_proxy_password;
} }
public void setHttp_proxy_password(String http_proxy_password) { public void setHttpProxyPassword(String httpProxyPassword) {
this.http_proxy_password = http_proxy_password; this.httpProxyPassword = httpProxyPassword;
} }
@Override @Override
public String toString() { public String toString() {
return "WxMpInMemoryConfigStorage{" + return ToStringBuilder.reflectionToString(this,ToStringStyle.JSON_STYLE);
"appId='" + this.appId + '\'' +
", secret='" + this.secret + '\'' +
", token='" + this.token + '\'' +
", partnerId='" + this.partnerId + '\'' +
", partnerKey='" + this.partnerKey + '\'' +
", accessToken='" + this.accessToken + '\'' +
", aesKey='" + this.aesKey + '\'' +
", expiresTime=" + this.expiresTime +
", http_proxy_host='" + this.http_proxy_host + '\'' +
", http_proxy_port=" + this.http_proxy_port +
", http_proxy_username='" + this.http_proxy_username + '\'' +
", http_proxy_password='" + this.http_proxy_password + '\'' +
", jsapiTicket='" + this.jsapiTicket + '\'' +
", jsapiTicketExpiresTime='" + this.jsapiTicketExpiresTime + '\'' +
", cardApiTicket='" + this.cardApiTicket + '\'' +
", cardApiTicketExpiresTime='" + this.cardApiTicketExpiresTime + '\'' +
", tmpDirFile='" + this.tmpDirFile + '\'' +
'}';
} }
@Override @Override