Ahhh perfect! that’s exactly what I wanted. Thanks Henryk! :-)
Now I just need to find out how to use my restlet component inside a container
and make it work.
Right now I have something like:
from("restlet:http://0.0.0.0:8080/api/hello/{world}?restletMethod=post";).process(new
MyBean())
From
Hi Steffen,
> I need to call different URLs all depending on a earlier route.
> So based on a earlier header I need to update the URL that needs to be called.
The most generic way to deliver the request to the dynamic endpoint is
to use Recipient List [1] EIP:
from(...).recipientList(header("end
Have you referred Routing Slip concept? http://camel.apache.org/routing-slip
On Fri, Feb 28, 2014 at 5:12 PM, Steffen Larsen wrote:
> Hi Guys,
>
> I need to call different URLs all depending on a earlier route.
> So based on a earlier header I need to update the URL that needs to be
> called.
>
Hi Guys,
I need to call different URLs all depending on a earlier route.
So based on a earlier header I need to update the URL that needs to be called.
I have tried:
.setHeader(Exchange.ACCEPT_CONTENT_TYPE, constant("application/json"))
.setHeader(Exchange.HTTP_METHOD, constant("GET"))
.setHeade