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.
void HttpURLConnection.setCookieHandler(CookieHandler)
CookieHandler HttpURLConnection.setCookieHandler()
that would make the future of JavaFX WebView somewhat simpler.
- duplicates
-
JDK-6973668 Add the ability to associate specific CookieHandler to HttpURLConnection
-
- Closed
-