camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Mueller (JIRA)" <>
Subject [jira] Commented: (CAMEL-1537) Predicate for validation
Date Wed, 21 Apr 2010 21:35:20 GMT


Christian Mueller commented on CAMEL-1537:

Currently I'm studying the Predicates, ProcessorDefinition, ...

In my opinion, we could provide the validation functionality for:
- xml validation
- bean validation (JSR 303)
- regExp validation for csv, fixed length, ...

I start with the regExp validation, because it's similar to the filter and choice predicate
and it's a good starting point for me to discover this part of Camel... :-)

Currently, I can write a route like this to validate against a regular expression:


To validate with the bean validation feature (JSR 303), I could imagine a route definition
like this:




if you want to define the constraint group, which should be evaluated.

For the validation against an XML schema, I could imagine the following route definition:


What do you think?

> Predicate for validation 
> -------------------------
>                 Key: CAMEL-1537
>                 URL:
>             Project: Apache Camel
>          Issue Type: New Feature
>    Affects Versions: 2.0-M1
>            Reporter: Claus Ibsen
>            Assignee: Christian Mueller
>            Priority: Minor
>             Fix For: Future
> 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>
> [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?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message