[ 
https://issues.apache.org/jira/browse/CXF-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173774#comment-13173774
 ] 

Benson Margulies commented on CXF-3988:
---------------------------------------

When you want to add a content disposition in addition to a content type and an 
object to map with a provider! Right now, passing in a content disposition 
forces application/octet-stream. 

I'd be content to add an AttachmentFactory class that obviates the confusing 
collection of constructors.

                
> org.apache.cxf.jaxrs.ext.multipart.Attachment object should be mutable
> ----------------------------------------------------------------------
>
>                 Key: CXF-3988
>                 URL: https://issues.apache.org/jira/browse/CXF-3988
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 2.5.1
>            Reporter: Benson Margulies
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to