Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-100

revise HttpContext hierarchy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-alpha5
    • 4.0-alpha6
    • HttpCore
    • None

    Description

      (posted on the httpcomponents-dev list)

      I don't like the current HttpContext hierarchy. We have:

      HttpContext - interface, some attribute name constants
      HttpExecutionContext - implementation, more attrib names
      SyncHttpExecutionContext - extended implementation
      HttpClientContext - more attribute names

      We solved this much better with HttpParams, where
      all the attribute names are defined separately
      instead of cluttering the interface or being spread
      around in implementation classes.

      I would like to move the attribute name constants
      either to separate interfaces defining only constants,
      or to isolated classes with static helper methods like
      we have them for HttpParams. The HttpContext hierarchy
      in core/client would be streamlined to the interface
      and the two implementations.

      Attachments

        1. 2k7-07-20-HttpCtxt-take-1.txt
          73 kB
          Roland Weber

        Activity

          People

            rolandw Roland Weber
            rolandw Roland Weber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: