camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Madhu Nair <>
Subject Setting REST service URL parameters at runtime in Camel
Date Sun, 29 Jun 2014 03:09:25 GMT
I want to pass some parameter values in my http GET request at runtime and
am not able to figure out a way to do this. The parameter is in my IN
message.  I have pasted the code snippet below:-

public class DocumentCountRouteBuilder extends RouteBuilder {

        public void configure() {

        String docUID = "${in.body.documentID}";

             .setHeader(Exchange.HTTP_METHOD, constant("GET"))
.setHeader(Exchange.HTTP_URI, simple("


I can't seem to figure out how to set the value of GWCC_DocUID at runtime.
I don't understand how Camel variables get initialized since when I log the
value of ${in.body.documentID} it logs properly.
I am new to Camel. Please help.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message