Hello,

Is there a way to make simple() perform string comparison in a case
insensitive way ?

The use case is described below:

.setProperty("Service", ns.xpath("/MyMessage/Service", String.class))
.choice()
  .when().simple("${property.Service} == 'myService'")

If the value of /MyMessage/Service is "myService", simple() will evaluate to
true, but if /MyMessage/Service is "myservice" it will evaluate to false.

I can think of a number of hacks for this but I'd like to hear what is the
camel recommended way to deal with a situation like this.

Thanks,
Slavisa



--
View this message in context: 
http://camel.465427.n5.nabble.com/Can-simple-be-made-to-compare-strings-in-a-case-insensitive-way-tp5767732.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to