Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 45968 invoked from network); 21 May 2010 13:20:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 May 2010 13:20:13 -0000 Received: (qmail 79959 invoked by uid 500); 21 May 2010 13:20:13 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 79844 invoked by uid 500); 21 May 2010 13:20:13 -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 79836 invoked by uid 500); 21 May 2010 13:20:13 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 79833 invoked by uid 99); 21 May 2010 13:20:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 May 2010 13:20:13 +0000 X-ASF-Spam-Status: No, hits=-1452.1 required=10.0 tests=ALL_TRUSTED,AWL 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, 21 May 2010 13:20:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4LDJq9P013676 for ; Fri, 21 May 2010 13:19:52 GMT Message-ID: <11278863.1071274447992454.JavaMail.jira@thor> Date: Fri, 21 May 2010 09:19:52 -0400 (EDT) From: "Willem Jiang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1537) Predicate for validation In-Reply-To: <589283629.1239898892206.JavaMail.jira@brutus> 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-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59501#action_59501 ] Willem Jiang commented on CAMEL-1537: ------------------------------------- The Camel EL is powerful, I committed a patch which tests the spring regex Validate. {code} ${bodyAs(java.lang.String)} regex '^\d{2}\.\d{2}\.\d{4}$' {code} > Predicate for validation > ------------------------- > > Key: CAMEL-1537 > URL: https://issues.apache.org/activemq/browse/CAMEL-1537 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Affects Versions: 2.0-M1 > Reporter: Claus Ibsen > Assignee: Christian Mueller > Priority: Minor > Fix For: 2.4.0 > > Attachments: CAMEL-1537.patch > > > The current validator is a component and its a bit clumsy as it throws an exception if validation error. > So if we have a nice Predicate for it, it can be like a xpath predicate or the likes. > [17:58] http://camel.apache.org/validation.html > [17:58] jstrachan: thanks for the quick responses > [17:59] jstrachan we should maybe have a predicate for schema validation > [17:59] then you can route it a bit more nice without try .. catch > [18:00] * fbolton has quit ("Leaving.") > [18:03] * gertv has quit (Client closed connection) > [18:05] cibsen: yeah > [18:05] cibsen: maybe a kinda predicate language using the other validators? filter().validate(theValidationEndpointUri).to("blah") -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.