Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091777

leverage WebEngine fetching capabilities for downloading resources

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.0.2
    • javafx
    • web

      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.

            Unassigned Unassigned
            duke J. Duke
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: