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

chenwei commented on CAMEL-5966:
--------------------------------

here is my code:
String contentId = "id1";
DataHandler dh = new DataHandler("hello, world","text/plain");
exchange.getOut().addAttachment(contentId, dh); 

the out message has an attachment with two headers: content-type and 
content-id, but I want the attachment has other headers like 
content-disposition. Now, you see, I have no way to add thoes headers.
If there is xchange.getOut().addAttachment(String contnetId, 
org.apache.cxf.message.Attachment att), then I can set thoese headers.
                
> camel exchange cannot set an attachment with a content-disposition header
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-5966
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5966
>             Project: Camel
>          Issue Type: Bug
>            Reporter: chenwei
>
> I want to use exchange.getOut().addAttachment(String contentId, DataHandler 
> dh),but I have no way to add a content-disposition header to DataHandler. if 
> camel can provide another method exchange.getOut().addAttachment(String 
> contentId, Attachment att), it would be better.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to