Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 340 invoked from network); 13 Aug 2010 14:22:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Aug 2010 14:22:12 -0000 Received: (qmail 14833 invoked by uid 500); 13 Aug 2010 14:22:12 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 14702 invoked by uid 500); 13 Aug 2010 14:22:10 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 14694 invoked by uid 500); 13 Aug 2010 14:22:09 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 14691 invoked by uid 99); 13 Aug 2010 14:22:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Aug 2010 14:22:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Aug 2010 14:22:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7DELmxx012308 for ; Fri, 13 Aug 2010 14:21:48 GMT Message-ID: <30088057.7111281709308451.JavaMail.jira@thor> Date: Fri, 13 Aug 2010 10:21:48 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-3054) Provide a headerAs function analagous to bodyAs In-Reply-To: <13660013.6931281700787296.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ 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.