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

Willem Jiang commented on CAMEL-5966:
-------------------------------------

Hi, 
We can not add the CXF related API into the camel Message API, I think you 
should do it by applying a custom CxfBinding to the camel-cxf endpoint,
or trying to access the Cxf Message from Camel Message headers with the key 
like this:
{code}
org.apache.cxf.message.Message cxfMessage = 
in.getHeader(CxfConstants.CAMEL_CXF_MESSAGE, 
org.apache.cxf.message.Message.class);
{code}

Willem
                
> 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