camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CAMEL-3054) Provide a headerAs function analagous to bodyAs
Date Fri, 13 Aug 2010 13:39:47 GMT

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


Mime
View raw message