public class Bootstrapper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CONNECT_TIMEOUT_MILLISECONDS |
static int |
READ_TIMEOUT_MILLISECONDS |
Constructor and Description |
---|
Bootstrapper(String productToken,
String serverUrl,
File workDir) |
Modifier and Type | Method and Description |
---|---|
BootstrapClassLoader |
createClassLoader(URL[] urls,
ClassLoader parent,
String... unmaskedPackages)
Download batch files from server and creates
BootstrapClassLoader . |
String |
getServerUrl() |
String |
getServerVersion() |
public static final int CONNECT_TIMEOUT_MILLISECONDS
public static final int READ_TIMEOUT_MILLISECONDS
public Bootstrapper(String productToken, String serverUrl, File workDir)
productToken
- part of User-Agent request-header field - see http://tools.ietf.org/html/rfc1945#section-10.15public String getServerUrl()
public String getServerVersion()
public BootstrapClassLoader createClassLoader(URL[] urls, ClassLoader parent, String... unmaskedPackages)
BootstrapClassLoader
.
To use this method version of Sonar should be at least 2.6.urls
- additional URLs for loading classes and resourcesparent
- parent ClassLoaderunmaskedPackages
- only classes and resources from those packages would be available for loading from parentCopyright © 2009-2012 SonarSource. All Rights Reserved.