camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Set body to length of header string in Spring DSL?
Date Tue, 27 Nov 2012 15:34:21 GMT
On Tue, Nov 27, 2012 at 4:22 PM, dunnlow <> wrote:
> Thank you both, huge help.
> Claus, question for you in the, "teach a man to fish.." category.  What is
> the best way to see all of the methods that simple provides?  For example, I
> had no idea about the Length() method - is that method inherited?  Thank you
> again,  -J

Ah that's the OGNL support for file language. It's basically
introspecting the body type, and invoked the method you provided in
the syntax.
So in this case, because its a java.lang.String it invokes the
"length" method on the String type.

> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message