Ability to set a CookieHandler per HttpURLConnection.

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 5.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: