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.

Reply via email to