You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Christian Müller <ch...@gmail.com> on 2012/06/03 00:10:11 UTC
Re: camel exchange body CachedOutputStream WrappedInputStream
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 <ma...@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.
>