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 HttpFileService
IOException
URISyntaxException
public void uploadFile(URI uri, File uploadFilePath, Consumer<org.apache.http.HttpRequest> addHeaders, int timeoutInMilliseconds)
uploadFile
in interface HttpFileService
public Future<File> downloadFileAsync(String url, File tempZipFile, AsyncCallback<File> callback, int timeoutInMilliseconds)
downloadFileAsync
in interface HttpFileService
Copyright © 2024. All rights reserved.