RE: Java DSL question

2014-05-22 Thread Glattfelder, Beat
).body(String.class) .get("user_name")); What am I missing here? -Original Message- From: Charles Moulliard [mailto:ch0...@gmail.com] Sent: Mittwoch, 21. Mai 2014 11:44 To: users@camel.apache.org Subject: Re: Java DSL question The body part of the camel exchange object (exchange.getIn()

Re: Java DSL question

2014-05-21 Thread Charles Moulliard
The body part of the camel exchange object (exchange.getIn().getBody()) after the split contain the string. So the syntax (to be typesafe) is .split(body()) setHeader("uid").body(String.class) On Wed, May 21, 2014 at 11:19 AM, Glattfelder, Beat < beat.glattfel...@credit-suisse.com> wrote: > Hi