Let's Camel do the work...

E.g., if you want the payload as String, you can do

convertBodyTo(String.class)

in the Camel DSL or

exchange.getIn().getBody(String.class)

when you are in a Camel Processor or a Bean. Camel will find a suitable
type converter for you and convert the payload into this type.

Best,
Christian

On Tue, May 22, 2012 at 9:59 AM, mathieuJ <mathieu.jam...@gmail.com> wrote:

> hi,
>
> i'm working on the modification of an answer.
>
> when i get my exchange answer, my body contains a  CachedOutputStream
> WrappedInputStream object;
>
> i don't know how i can extract some information of this object for
> read/modify/etc.. information.
>
>
> thank you for your help
>
> Mathieu
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/camel-exchange-body-CachedOutputStream-WrappedInputStream-tp5713308.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>

Reply via email to