camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5966) camel exchange cannot set an attachment with a content-disposition header
Date Mon, 14 Jan 2013 13:58:13 GMT

    [ 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

Mime
View raw message