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

James Strachan commented on CAMEL-115:
--------------------------------------

It'd be nice to be able to pass in context parameters, like Exchange or Message 
as another parameter to the converter.

e.g.

public InputStream toStream(File file, Exchange context) {....}



> Provide access to the Exchange in TypeConverter#convert
> -------------------------------------------------------
>
>                 Key: CAMEL-115
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-115
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Brian McCallister
>            Assignee: Hadrian Zbarcea
>             Fix For: 1.5.0
>
>
> I ran into a problem where I need to move some data from a Header into the 
> body. It would be nice to supply the exchange to the type converter o this 
> can be done in type conversion rather than as an explicit processor

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to