CXF
  1. CXF
  2. CXF-3988

org.apache.cxf.jaxrs.ext.multipart.Attachment object should be mutable

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      As currently coded, the headers in an Attachment are immutable after construction. This prevents a construction like:

      • call a convenient constructor
      • add one more header

      Rather than change the contract of getHeaders, I propose to add put/putSingle to the contract of Attachment.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Benson Margulies
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development