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

Mechanism to set CookieHandler per connection needed

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6u24
    • core-libs
    • None
    • generic
    • generic

      The JavaFX WebView project would benefit greatly from being able to set a custom CookieHandler for an individual connection or a group of connections. The current ability to configure the system-wide cookie handler via CookieHandler.setDefault does not suit well enough the WebView needs, especially in the applet mode, resulting in issues like http://javafx-jira.kenai.com/browse/RT-12202, http://javafx-jira.kenai.com/browse/RT-12199, http://javafx-jira.kenai.com/browse/RT-12200. It (the current mechanism) does not look flexible enough too. If HttpURLConnection allowed setting a CookieHandler per connection via e.g.

          void HttpURLConnection.setCookieHandler(CookieHandler)
          CookieHandler HttpURLConnection.setCookieHandler()

      that would make the future of JavaFX WebView somewhat simpler.

            chegar Chris Hegarty
            vbaranov Vasiliy Baranov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: