org.sonar.batch.bootstrap
Class ServerClient

java.lang.Object
  extended by 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

Constructor Summary
ServerClient(BootstrapProperties settings, EnvironmentInformation env)
           
 
Method Summary
 void download(String pathStartingWithSlash, File toFile)
           
 void download(String pathStartingWithSlash, File toFile, Integer readTimeoutMillis)
           
static String encodeForUrl(String url)
           
 String getURL()
           
 String request(String pathStartingWithSlash)
           
 String request(String pathStartingWithSlash, boolean wrapHttpException)
           
 String request(String pathStartingWithSlash, boolean wrapHttpException, Integer timeoutMillis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerClient

public ServerClient(BootstrapProperties settings,
                    EnvironmentInformation env)
Method Detail

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.