diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-03-12 11:01:27 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-03-12 11:16:04 +0100 |
commit | c0e6c4b6dd0f8c1b92b5941807c2a137e57ba14d (patch) | |
tree | 1b5ec4e1d52a307fa8cab911fadf5af3216dafa8 /sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java | |
parent | 283c343d94f764e6c6f4c3d7b7fd546cf325ffe4 (diff) | |
download | sonarqube-c0e6c4b6dd0f8c1b92b5941807c2a137e57ba14d.tar.gz sonarqube-c0e6c4b6dd0f8c1b92b5941807c2a137e57ba14d.zip |
SONAR-5094 Remove dependency on sonar-ws-client from sonar-batch
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java index fee1e67ba6e..111f28b36b8 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java @@ -31,7 +31,6 @@ import org.sonar.api.CoreProperties; import org.sonar.api.utils.HttpDownloader; import org.sonar.api.utils.SonarException; import org.sonar.batch.bootstrapper.EnvironmentInformation; -import org.sonar.wsclient.SonarClient; import javax.annotation.Nullable; @@ -50,12 +49,10 @@ public class ServerClient implements BatchComponent { private BootstrapSettings settings; private HttpDownloader.BaseHttpDownloader downloader; - private SonarClient wsClient; public ServerClient(BootstrapSettings settings, EnvironmentInformation env) { this.settings = settings; this.downloader = new HttpDownloader.BaseHttpDownloader(settings.properties(), env.toString()); - this.wsClient = SonarClient.create(getURL()); } public String getURL() { @@ -96,10 +93,6 @@ public class ServerClient implements BatchComponent { } } - public SonarClient wsClient() { - return wsClient; - } - private InputSupplier<InputStream> doRequest(String pathStartingWithSlash, @Nullable Integer timeoutMillis) { Preconditions.checkArgument(pathStartingWithSlash.startsWith("/"), "Path must start with slash /"); String path = StringEscapeUtils.escapeHtml(pathStartingWithSlash); |