Merge remote-tracking branch 'origin/master' into 2.3.0

This commit is contained in:
wing328
2017-05-14 22:32:12 +08:00
220 changed files with 1534 additions and 61 deletions

View File

@@ -62,6 +62,7 @@ public class ApiClient {
private InputStream sslCaCert;
private boolean verifyingSsl;
private KeyManager[] keyManagers;
private OkHttpClient httpClient;
private JSON json;
@@ -200,6 +201,27 @@ public class ApiClient {
return this;
}
public KeyManager[] getKeyManagers() {
return keyManagers;
}
/**
* Configure client keys to use for authorization in an SSL session.
* Use null to reset to default.
*
* @param managers The KeyManagers to use
* @return ApiClient
*/
public ApiClient setKeyManagers(KeyManager[] managers) {
this.keyManagers = managers;
applySslSettings();
return this;
}
public DateFormat getDateFormat() {
return dateFormat;
}
public ApiClient setDateFormat(DateFormat dateFormat) {
this.json.setDateFormat(dateFormat);
return this;
@@ -1046,7 +1068,6 @@ public class ApiClient {
*/
private void applySslSettings() {
try {
KeyManager[] keyManagers = null;
TrustManager[] trustManagers = null;
HostnameVerifier hostnameVerifier = null;
if (!verifyingSsl) {

View File

@@ -25,6 +25,10 @@ public enum {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum
this.value = value;
}
public {{{dataType}}} getValue() {
return value;
}
@Override
{{#jackson}}
@JsonValue

View File

@@ -26,6 +26,10 @@
this.value = value;
}
public {{{datatype}}} getValue() {
return value;
}
@Override
{{#jackson}}
@JsonValue