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

Ability to set a CookieHandler per HttpURLConnection.

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: