AW: Java DSL Question - revisited

2014-05-26 Thread jhm
Gesendet: Montag, 26. Mai 2014 16:32 > An: users@camel.apache.org > Betreff: Java DSL Question - revisited > > Hi again > > I need to clarify that I want to access members of the Object in the > body, which is a HashMap, from within the DSL. From a Processor I can > access the Ob

Java DSL Question - revisited

2014-05-26 Thread Glattfelder, Beat
Hi again I need to clarify that I want to access members of the Object in the body, which is a HashMap, from within the DSL. From a Processor I can access the Object as such: // works exchange.getIn().getBody(Map.class).get("user_name")); In the fluent builder, like in the following exa

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

Java DSL question

2014-05-21 Thread Glattfelder, Beat
Hi Camel Riders I am back with a simple question I found to tough to answer myself: How do I access the message body in a typesafe manner like in the TODO comment below? Obviously implementing a processor works fine, but make things harder to read. Thanks for advising, Beat

Java DSL question

2014-05-20 Thread Glattfelder, Beat
Hi Camel Riders I am back with a simple question I found to tough to answer myself: How do I access the message body in a typesafe manner like in the TODO comment below? Obviously implementing a processor works fine, but make things harder to read. Thanks for advising, Beat