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

leverage WebEngine fetching capabilities for downloading resources

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: fx2.0.2
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported: