public class HttpClientHttpFileService extends Object implements HttpFileService
| Constructor and Description |
|---|
HttpClientHttpFileService() |
| Modifier and Type | Method and Description |
|---|---|
void |
downloadFile(String url,
File tempZipFile,
boolean overwrite,
int timeoutInMilliseconds) |
Future<File> |
downloadFileAsync(String url,
File tempZipFile,
AsyncCallback<File> callback,
int timeoutInMilliseconds) |
void |
uploadFile(URI uri,
File uploadFilePath,
Consumer<org.apache.http.HttpRequest> addHeaders,
int timeoutInMilliseconds) |
public void downloadFile(String url, File tempZipFile, boolean overwrite, int timeoutInMilliseconds) throws IOException, URISyntaxException
downloadFile in interface HttpFileServiceIOExceptionURISyntaxExceptionpublic void uploadFile(URI uri, File uploadFilePath, Consumer<org.apache.http.HttpRequest> addHeaders, int timeoutInMilliseconds)
uploadFile in interface HttpFileServicepublic Future<File> downloadFileAsync(String url, File tempZipFile, AsyncCallback<File> callback, int timeoutInMilliseconds)
downloadFileAsync in interface HttpFileServiceCopyright © 2024. All rights reserved.