Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 13503 invoked from network); 20 Dec 2009 15:00:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Dec 2009 15:00:16 -0000 Received: (qmail 41126 invoked by uid 500); 20 Dec 2009 15:00:16 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 41063 invoked by uid 500); 20 Dec 2009 15:00:16 -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 41053 invoked by uid 500); 20 Dec 2009 15:00:16 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 41050 invoked by uid 99); 20 Dec 2009 15:00:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Dec 2009 15:00:16 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Dec 2009 15:00:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ECFC4234C045 for ; Sun, 20 Dec 2009 06:59:52 -0800 (PST) Message-ID: <1600187143.1261321192954.JavaMail.jira@brutus> Date: Sun, 20 Dec 2009 06:59:52 -0800 (PST) From: "Fernando Ribeiro (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-2304) Default Values for Headers and Properties In-Reply-To: <1536340783.1261157632813.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Ribeiro updated CAMEL-2304: ------------------------------------ Description: Like their similars in JBoss ESB, for example, the following methods could take a second or third argument with default values to be returned when the header or property doesn't exist: Exchange.getProperty Message.getHeader It would make 1) getting the property, 2) checking if it is null and 3) setting it to the default value a single step. was: The following methods could take a second or third argument with default values to be returned when the header or property doesn't exist: Exchange.getProperty Message.getHeader It would make 1) getting the property, 2) checking if it is null and 3) setting it to the default value a single step. > Default Values for Headers and Properties > ----------------------------------------- > > Key: CAMEL-2304 > URL: https://issues.apache.org/activemq/browse/CAMEL-2304 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.1.0 > Reporter: Fernando Ribeiro > > Like their similars in JBoss ESB, for example, the following methods could take a second or third argument with default values to be returned when the header or property doesn't exist: > Exchange.getProperty > Message.getHeader > It would make 1) getting the property, 2) checking if it is null and 3) setting it to the default value a single step. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.