Hi,

I need to see the full picture of issue.

Please show use the camel route which will use the processor you have.
As I have suggested in the CAMEL-5966, you should be able to do it within the 
CXF Message.


[1]https://issues.apache.org/jira/browse/CAMEL-5966  
--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Thursday, January 17, 2013 at 9:40 AM, cww1769 wrote:

> Hi, all:
> I just met a problem in my project which is using cxf-camel. Here is my
> code in the camel processor:
> *
> HashMap<String, Object> map = (HashMap<String,
> Object>)exchange.getIn().getBody();  
> org.apache.cxf.message.Attachment attachment =
> (Attachment)map.get("MyAttachment");
> exchange.getOut().addAttachment(attachment.getId(),attachment.getDataHandler());*
>  
> The out message will have an attachment with two headers: content-type and
> content-id, but I want the attachment has other headers like
> content-disposition which I have set in attachment. I considered adding an
> interceptor, but I don't know how I can get the attachment headers.
> Thanks for your attention and time!
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/how-to-set-attachment-headers-in-camel-exchange-tp5725670.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to