HttpComponents HttpClient
  1. HttpComponents HttpClient
  2. HTTPCLIENT-652

Add optional state attribute to managed client connections

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0 Final, 3.0.1, 3.1 RC1
    • Fix Version/s: 4.0 Alpha 4
    • Component/s: HttpConn
    • Labels:
      None

      Description

      Provide an optional state attribute to managed client connections. The connection state can represent a user identify in case of connection based authentication schemes such as NTLM or SSL, thus allowing for connection re-use on a per user identity basis.

        Issue Links

          Activity

          Hide
          Roland Weber added a comment -

          I wanted to add this to HttpRoute and RouteTracker, so it is available when connections are requested.
          See the auth state related comments among the route ideas:
          http://wiki.apache.org/jakarta-httpclient/ConnectionManagementDesign#head-33536cdc185e77f8aab85785f66f7d952c0ec10b

          cheers,
          Roland

          Show
          Roland Weber added a comment - I wanted to add this to HttpRoute and RouteTracker, so it is available when connections are requested. See the auth state related comments among the route ideas: http://wiki.apache.org/jakarta-httpclient/ConnectionManagementDesign#head-33536cdc185e77f8aab85785f66f7d952c0ec10b cheers, Roland
          Hide
          Roland Weber added a comment -

          TSCCM was subject to major refactoring since alpha 1.
          Let's give it some time to settle before extending functionality.

          Show
          Roland Weber added a comment - TSCCM was subject to major refactoring since alpha 1. Let's give it some time to settle before extending functionality.
          Hide
          Roland Weber added a comment -

          My latest ideas would keep HttpRoute unmodifiable and instead pass authentication state as a parameter when allocating a connection. The stateful connections need an attribute with setter/getter to track state. Things might get out of hand if different kind of state needs to be tracked.

          The Wiki page has moved to [1], but the content hasn't changed recently.

          [1] http://wiki.apache.org/HttpComponents/ClientConnectionManagementDesign

          Show
          Roland Weber added a comment - My latest ideas would keep HttpRoute unmodifiable and instead pass authentication state as a parameter when allocating a connection. The stateful connections need an attribute with setter/getter to track state. Things might get out of hand if different kind of state needs to be tracked. The Wiki page has moved to [1] , but the content hasn't changed recently. [1] http://wiki.apache.org/HttpComponents/ClientConnectionManagementDesign
          Hide
          Oleg Kalnichevski added a comment -

          Implemented in SVN trunk.

          Oleg

          Show
          Oleg Kalnichevski added a comment - Implemented in SVN trunk. Oleg

            People

            • Assignee:
              Unassigned
              Reporter:
              Oleg Kalnichevski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development