]> source.dussan.org Git - sonarqube.git/commit
SONAR-5383 improve SonarClient#get() and #post()
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 25 Aug 2014 17:51:23 +0000 (19:51 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 25 Aug 2014 17:51:52 +0000 (19:51 +0200)
commitd21ac75fe48328a14022bb5f06a6624f05a14920
tree133f62e171f0fa366e015953bc1917594869e076
parent1cf7fa356ee647d94db8ed92996d3a7acf3625ae
SONAR-5383 improve SonarClient#get() and #post()

* add helpful get(String relativeUrl, Object... params) and post(String relativeUrl, Object... params)
* support relativeUrl that does not start with slash /
server/sonar-ws-client/src/main/java/org/sonar/wsclient/SonarClient.java
server/sonar-ws-client/src/main/java/org/sonar/wsclient/internal/HttpRequestFactory.java
server/sonar-ws-client/src/main/java/org/sonar/wsclient/project/internal/DefaultProjectClient.java
server/sonar-ws-client/src/test/java/org/sonar/wsclient/SonarClientTest.java
server/sonar-ws-client/src/test/java/org/sonar/wsclient/internal/HttpRequestFactoryTest.java