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

Javadoc could be clearer about the scopes for the encoder/decoder....

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2.2
    • Documentation
    • None

    Description

      While working with hc for use with CXF, I tried using the encoder/decoder on a different thread, but ONLY on that different thread since they aren't marked threadsafe. However, I ran into some problems. The javadoc for produceContent and for the encoder/decoder interfaces likely should contain something like:

      "The encoder should only be used within the context of the call to produceContent. The IOControl object can be retained and used on other threads to allow resuming events when appropriate."

      to make it clear that the encoder/decoder should not be retained at all, but the IONControl object could be.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: