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
Constructor Summary |
HttpDownloader()
Should be package protected for unit tests only, but public is still required for jacoco 0.2. |
HttpDownloader(org.apache.commons.configuration.Configuration configuration)
|
HttpDownloader(Server server,
org.apache.commons.configuration.Configuration configuration)
|
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,
org.apache.commons.configuration.Configuration configuration)
HttpDownloader
public HttpDownloader(org.apache.commons.configuration.Configuration configuration)
HttpDownloader
public HttpDownloader()
- Should be package protected for unit tests only, but public is still required for jacoco 0.2.
getProxySynthesis
public String getProxySynthesis(URI uri)
download
public void download(URI uri,
File toFile)
download
public byte[] download(URI uri)
openStream
public InputStream openStream(URI uri)
Copyright © 2009-2010 SonarSource. All Rights Reserved.