A DESCRIPTION OF THE REQUEST :
Currently the way to have cookie support is to use CookieHandler.setDefault(). But this is system-wide.
JUSTIFICATION :
If I'm coding a library which needs to use HTTP with cookies for a simple thing... I shouldn't be needing to disrupt the application-wide cookie handler!
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
There could be a new method in HttpURLConnection called "setCookieHandler", which would set the cookie handler for use by that connection.
Currently the way to have cookie support is to use CookieHandler.setDefault(). But this is system-wide.
JUSTIFICATION :
If I'm coding a library which needs to use HTTP with cookies for a simple thing... I shouldn't be needing to disrupt the application-wide cookie handler!
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
There could be a new method in HttpURLConnection called "setCookieHandler", which would set the cookie handler for use by that connection.
- duplicates
-
JDK-6973668 Add the ability to associate specific CookieHandler to HttpURLConnection
-
- Closed
-