Hi, I have an endpoint to receive an incoming http request. Then use a processor to derive a new value from some query parameters before
redirecting the request to another URL. Roughly, my code is below. from("jetty:http4://localhost:8081/test?matchOnUriPrefix=true").to(redirectProcessor); In my RedirectProccessor : public void process(Exchange exchange) throws Exception { HttpServletResponse response = exchange.getIn().getBody( HttpServletResponse.class); String fooValue = (compute fooValue depends on a HttpRequest parameter). String url = "http://a.b.com/test?foo=" + fooValue; response.sendRedirect(url); } I wonder if there is a more elegant way to achieve the above. Something like: from("jetty:http4://localhost:8081/test?matchOnUriPrefix=true").transform(...).("redirect:http://a.b.c.com/test"); Thanks in advance for any assistance ! Shing