From df60cd2d8b4f20200203763ff9ac6b03a83bbab2 Mon Sep 17 00:00:00 2001 From: Jason Quinn Date: Fri, 10 Jun 2016 11:56:05 +0100 Subject: [PATCH 1/3] Adding the ability to get/set the httpClient for jersey2 --- .../resources/Java/libraries/jersey2/ApiClient.mustache | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache index 58bab66e13d..14d1c224c1e 100644 --- a/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache +++ b/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache @@ -98,6 +98,15 @@ public class ApiClient { return json; } + public Client getHttpClient() { + return httpClient; + } + + public ApiClient setHttpClient(Client httpClient) { + this.httpClient = httpClient; + return this; + } + public String getBasePath() { return basePath; } From e57f039eb9dc56f54005938dbb54442ce106474d Mon Sep 17 00:00:00 2001 From: Jason Quinn Date: Fri, 10 Jun 2016 12:00:52 +0100 Subject: [PATCH 2/3] Updating jersey2 sample --- .../src/main/java/io/swagger/client/ApiClient.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/ApiClient.java b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/ApiClient.java index bc43cfe670e..9bbc81bff1f 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/ApiClient.java @@ -102,6 +102,15 @@ public class ApiClient { return json; } + public Client getHttpClient() { + return httpClient; + } + + public ApiClient setHttpClient(Client httpClient) { + this.httpClient = httpClient; + return this; + } + public String getBasePath() { return basePath; } From 8ffe4c9e06bd187275cc70da42dbabc658f6517a Mon Sep 17 00:00:00 2001 From: Jason Quinn Date: Fri, 10 Jun 2016 14:12:13 +0100 Subject: [PATCH 3/3] Removing gradle dependency for jersey2 pom --- .../Java/libraries/jersey2/pom.mustache | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/pom.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/pom.mustache index 472bbf9b9b8..df02b10e73e 100644 --- a/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/pom.mustache +++ b/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/pom.mustache @@ -104,27 +104,6 @@ 1.7 - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - gradle-test - integration-test - - exec - - - gradle - - check - - - - -