I am planning to leverage WebView/WebEngine in order to build a web spider.
In order to download a web resource on my FS (File System), that not for rendering, one option could be to use HttpComponents from Apache community.
Well, while WebEngine is opening http connections, I would rather prefer to use WebEngine for downloading the requested resource, instead of programming this download through, for example, the Apache's HttpComponents.
So, I would like WebEngine Java class to have an API offering at least the following methods:
- download(String url, String file) : download a web resource.
- downloadInto(String url, String directory) : similar to the previous one.
- getDownloadWorker() : get a worker presenting all the current downloads' status, and enabling to cancel, if needed, some downloads.
This API would provide a simpler way to download web resources than Apache's HttpComponents.
In order to download a web resource on my FS (File System), that not for rendering, one option could be to use HttpComponents from Apache community.
Well, while WebEngine is opening http connections, I would rather prefer to use WebEngine for downloading the requested resource, instead of programming this download through, for example, the Apache's HttpComponents.
So, I would like WebEngine Java class to have an API offering at least the following methods:
- download(String url, String file) : download a web resource.
- downloadInto(String url, String directory) : similar to the previous one.
- getDownloadWorker() : get a worker presenting all the current downloads' status, and enabling to cancel, if needed, some downloads.
This API would provide a simpler way to download web resources than Apache's HttpComponents.
- duplicates
-
JDK-8103043 WebView should be able to handle file downloads
-
- Closed
-
-
JDK-8103173 handle file downloads using JavaFX 2.0 WebEngine
-
- Closed
-