org.sonar.batch.bootstrap
Class ServerClient
java.lang.Object
org.sonar.batch.bootstrap.ServerClient
- All Implemented Interfaces:
- BatchComponent
public class ServerClient
- extends Object
- implements BatchComponent
Replace the deprecated org.sonar.batch.ServerMetadata
TODO extends Server when removing the deprecated org.sonar.batch.ServerMetadata
- Since:
- 3.4
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerClient
public ServerClient(BootstrapProperties settings,
EnvironmentInformation env)
getURL
public String getURL()
download
public void download(String pathStartingWithSlash,
File toFile)
download
public void download(String pathStartingWithSlash,
File toFile,
@Nullable
Integer readTimeoutMillis)
request
public String request(String pathStartingWithSlash)
request
public String request(String pathStartingWithSlash,
boolean wrapHttpException)
request
public String request(String pathStartingWithSlash,
boolean wrapHttpException,
@Nullable
Integer timeoutMillis)
encodeForUrl
public static String encodeForUrl(String url)
Copyright © 2009–2015 SonarSource. All rights reserved.