[Java][Webclient] Init authentication on ApiClient instantiation (#887)

This commit is contained in:
Marco
2018-08-25 14:22:16 +02:00
committed by Jérémie Bresson
parent 50c6ac34f1
commit 39e9206976
2 changed files with 8 additions and 0 deletions

View File

@@ -88,6 +88,8 @@ public class ApiClient {
public ApiClient() {
this.dateFormat = createDefaultDateFormat();
this.webClient = buildWebClient(new ObjectMapper(), this.dateFormat);
init();
}
public ApiClient(ObjectMapper mapper, DateFormat format) {
@@ -97,6 +99,8 @@ public class ApiClient {
private ApiClient(WebClient webClient, DateFormat format) {
this.webClient = webClient;
this.dateFormat = format;
init();
}
public DateFormat createDefaultDateFormat() {

View File

@@ -88,6 +88,8 @@ public class ApiClient {
public ApiClient() {
this.dateFormat = createDefaultDateFormat();
this.webClient = buildWebClient(new ObjectMapper(), this.dateFormat);
init();
}
public ApiClient(ObjectMapper mapper, DateFormat format) {
@@ -97,6 +99,8 @@ public class ApiClient {
private ApiClient(WebClient webClient, DateFormat format) {
this.webClient = webClient;
this.dateFormat = format;
init();
}
public DateFormat createDefaultDateFormat() {