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] Commented: (CAMEL-1537) Predicate for validation
Date Thu, 20 May 2010 05:40:14 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59463#action_59463
] 

Claus Ibsen commented on CAMEL-1537:
------------------------------------

Willem you was a bit to fast there to commit the patch.

We already have the pieces in the core, and all was needed was just to add the validate in
the DSL which hooks up with the Predicate/Expression concept of Camel.
And it can be integrated with XML by requiring an ExpressionNodeDefiniton (i think thats the
name, but see eg. DelayDefinition).

Then that Expression is just evaluated as a Predicate and if its false an exception is thrown.

> Predicate for validation 
> -------------------------
>
>                 Key: CAMEL-1537
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1537
>             Project: Apache Camel
>          Issue Type: New Feature
>    Affects Versions: 2.0-M1
>            Reporter: Claus Ibsen
>            Assignee: Christian Mueller
>            Priority: Minor
>             Fix For: Future
>
>         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]  <jstrachan> http://camel.apache.org/validation.html
> [17:58]  <ulhasb> jstrachan: thanks for the quick responses
> [17:59]  <cibsen> jstrachan we should maybe have a predicate for schema validation
> [17:59]  <cibsen> 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]  <jstrachan> cibsen: yeah
> [18:05]  <jstrachan> 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.


Mime
View raw message