public class HttpFileRequester
extends java.lang.Object
| Constructor and Description |
|---|
HttpFileRequester(org.apache.http.impl.client.CloseableHttpClient httpClient,
ProgressReport progressReport) |
| Modifier and Type | Method and Description |
|---|---|
void |
download(java.net.URI uri,
java.io.File outputFile,
org.apache.http.protocol.HttpContext clientContext,
java.util.List<org.apache.http.Header> headers)
Downloads the resource with the given URI to the specified local file system location.
|
public HttpFileRequester(org.apache.http.impl.client.CloseableHttpClient httpClient,
ProgressReport progressReport)
public void download(java.net.URI uri,
java.io.File outputFile,
org.apache.http.protocol.HttpContext clientContext,
java.util.List<org.apache.http.Header> headers)
throws java.lang.Exception
uri - the target URIoutputFile - the output fileclientContext - the HTTP execution context.java.lang.ExceptionCopyright © 2009-2021 Open-Source. All Rights Reserved.