Merge pull request #3108 from JasonQuinn/master

Adding the ability to get and set the httpClient for jersey2
This commit is contained in:
wing328 2016-06-18 16:56:01 +08:00 committed by GitHub
commit cc5668c825
3 changed files with 18 additions and 21 deletions

View File

@ -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;
}

View File

@ -104,27 +104,6 @@
<target>1.7</target>
</configuration>
</plugin>
<!-- For testing build.gradle -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>gradle-test</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>gradle</executable>
<arguments>
<argument>check</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>

View File

@ -97,6 +97,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;
}