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


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.

Reply via email to