Class HttpFileRequester
java.lang.Object
com.googlecode.download.maven.plugin.internal.HttpFileRequester
File requester that can download resources over HTTP transport using Apache HttpClient 4.x.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpFileRequester(org.apache.http.impl.client.CloseableHttpClient httpClient, ProgressReport progressReport) -
Method Summary
-
Constructor Details
-
HttpFileRequester
public HttpFileRequester(org.apache.http.impl.client.CloseableHttpClient httpClient, ProgressReport progressReport)
-
-
Method Details
-
download
public void download(URI uri, File outputFile, org.apache.http.protocol.HttpContext clientContext, List<org.apache.http.Header> headers) throws Exception Downloads the resource with the given URI to the specified local file system location.- Parameters:
uri- the target URIoutputFile- the output fileclientContext- the HTTP execution context.- Throws:
Exception
-