You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/08/13 15:39:47 UTC

[jira] Assigned: (CAMEL-3054) Provide a headerAs function analagous to bodyAs

     [ https://issues.apache.org/activemq/browse/CAMEL-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-3054:
----------------------------------

    Assignee: Claus Ibsen

> 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
>
> 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.