camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Created] (CAMEL-4090) Add support for setting resultType on Simple expressions
Date Sat, 11 Jun 2011 13:59:59 GMT
Add support for setting resultType on Simple expressions

                 Key: CAMEL-4090
             Project: Camel
          Issue Type: New Feature
          Components: camel-core
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.8.0

When people are using the simple expression such as setting a header etc, they may want to
control what the result type of the expression is. Suppose they want to set a boolean

<setHeader headerName="foo">

What happens is that the type of the foo header will be a String as thats the default type
from a simple expression.

We should add the resultType attribute which other expressions has such as XPath/XQuery etc.
Then you can do as follows:
<setHeader headerName="foo">
  <simple resultType="java.lang.Boolean">true</simple>

Likewise it should be possible in Java DSL.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message