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

Ability to set a CookieHandler per HttpURLConnection.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 5.0
    • core-libs
    • x86
    • windows_xp

      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.

            chegar Chris Hegarty
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: