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