org.sonar.api.utils
Class HttpDownloader
java.lang.Object
org.sonar.api.utils.HttpDownloader
- All Implemented Interfaces:
- BatchComponent, ServerComponent
public class HttpDownloader
- extends Object
- implements BatchComponent, ServerComponent
This component downloads HTTP files
- Since:
- 2.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIMEOUT_MILLISECONDS
public static final int TIMEOUT_MILLISECONDS
- See Also:
- Constant Field Values
HttpDownloader
public HttpDownloader(Server server,
Settings settings)
HttpDownloader
public HttpDownloader(Server server,
Settings settings,
@Nullable
Integer readTimeout)
HttpDownloader
public HttpDownloader(Settings settings)
HttpDownloader
public HttpDownloader(Settings settings,
@Nullable
Integer readTimeout)
downloadPlainText
public String downloadPlainText(URI uri,
String encoding)
download
public byte[] download(URI uri)
getProxySynthesis
public String getProxySynthesis(URI uri)
openStream
public InputStream openStream(URI uri)
download
public void download(URI uri,
File toFile)
Copyright © 2009-2014 SonarSource. All Rights Reserved.