You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Edward Dale (JIRA)" <ji...@apache.org> on 2010/08/13 13:59:47 UTC
[jira] Created: (CAMEL-3054) Provide a headerAs function analagous
to bodyAs
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.
[jira] Resolved: (CAMEL-3054) Provide a headerAs function analagous
to bodyAs
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (CAMEL-3054) Provide a headerAs function analagous
to bodyAs
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.