[
https://issues.apache.org/activemq/browse/CAMEL-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-3054.
--------------------------------
Fix Version/s: 2.5.0
Resolution: Fixed
trunk: 985206.
> Provide a headerAs function analagous to bodyAs
> -----------------------------------------------
>
> Key: CAMEL-3054
> URL: https://issues.apache.org/activemq/browse/CAMEL-3054
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Edward Dale
> Assignee: Claus Ibsen
> Fix For: 2.5.0
>
>
> To allow a header to be coaxed to a certain class, a {{headerAs}} "function"
> would be useful in the Simple language. It would provide the same function as
> the current {{bodyAs}}.
> One possible use case for this is:
> bq. simple("${in.header.foo} > 100")
> which would fail if {{foo}} is a string. Casting it to an integer with
> {{headerAs}} would solve this, as would #CAMEL-3052.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.