Class HttpFileRequester

java.lang.Object
com.googlecode.download.maven.plugin.internal.HttpFileRequester

public class HttpFileRequester extends Object
File requester that can download resources over HTTP transport using Apache HttpClient 4.x.
  • 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 URI
      outputFile - the output file
      clientContext - the HTTP execution context.
      Throws:
      Exception