Simple route with restlet and text stream as the output

2012-10-18 Thread Martin Stiborský
Hello guys, I'm here again with probably quite obvious things that I haven't understood or missed. Let's describe my scenario. I want to provide REST interface on the from() side of the Camel route, and HTML/JSON/XML/etc stream on the other side, that is the to() side in Camel routes terms. Right

Re: Simple route with restlet and text stream as the output

2012-10-18 Thread Martin Stiborský
Ooops. I guess, I was trying to find there something complicated, but it works just like that: from(restlet:{{rest.base}}/test2/{DATA}).beanRef(testBean); Where testBean is just a HelloWorld style bean: public class TestBean { public String test(String data) { return Tested with

Re: Simple route with restlet and text stream as the output

2012-10-18 Thread Martin Stiborský
I'm a little bit alone here…but…I've fixed the problem… public class TestBean { public String test(@Header(DATA) String data) { return Tested with TestBean: + data; } } On Thu, Oct 18, 2012 at 3:07 PM, Martin Stiborský martin.stibor...@gmail.com wrote: Oh, again me here :) Now I see