You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cgsk <ka...@gmail.com> on 2012/08/01 13:17:35 UTC
DSL trim on body of type string
Hi There,
I need to do trim() on the body of type String in the DSL. Is there any
staright way out in camel by using transform/convertor/regex? I dont prefer
writing something some processor or custom convertor. Apologies if it sounds
stupid.
Thanks,
CGSK
--
View this message in context: http://camel.465427.n5.nabble.com/DSL-trim-on-body-of-type-string-tp5716660.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: DSL trim on body of type string
Posted by cgsk <ka...@gmail.com>.
Hi Jon,
Thanks. Its works!!!!!!.
Regards,
CGSK
--
View this message in context: http://camel.465427.n5.nabble.com/DSL-trim-on-body-of-type-string-tp5716660p5716664.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: DSL trim on body of type string
Posted by Jon Anstey <ja...@gmail.com>.
Try this:
from(...).transform().simple("${in.body.trim()}")...
On Wed, Aug 1, 2012 at 8:47 AM, cgsk <ka...@gmail.com> wrote:
> Hi There,
>
> I need to do trim() on the body of type String in the DSL. Is there any
> staright way out in camel by using transform/convertor/regex? I dont prefer
> writing something some processor or custom convertor. Apologies if it
> sounds
> stupid.
>
> Thanks,
> CGSK
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/DSL-trim-on-body-of-type-string-tp5716660.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Cheers,
Jon
---------------
FuseSource
Email: jon@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen