Hi You will have to parse the query string yourself.
In order to get the values in header and use the api to get the same, you will have to set the endpoint uri correctly. For example <from uri="restlet: http://0.0.0.0:8181/cars/100/{color}/{year}?httpMethods=get,post"/> If your request is like this ... http://0.0.0.0:8181/cars/100/red/2004, then you can access the values in code like this.. String color = exchange.getIn().getHeader("color", String.class); String year = exchange.getIn().getHeader("year", String.class); For more details refer to https://camel.apache.org/restlet.html On Mon, Jun 8, 2015 at 11:54 PM, contactreji <contactr...@gmail.com> wrote: > Hi > > I am trying to do a POC using camel-restlet component. I was wondering if I > use something like follows > > <route> > <from uri="restlet:http://0.0.0.0:8181/cars/100?httpMethods=get,post"/> > ........ > </route> > > Suppose I hit the endpoint with > *http://localhost:8181/cars/100?color=red&model=2015* with a http GET > method, how do I access the *color=red* data in camel exchange. where does > it get stored? > When i print the camel header CamelHttpQuery, I can see it printint as > color=red&model=2015. Is there any way i can have 2 separate headers in > camel exchange named color, model populated with red,2015 respectively? > > Cheers > Reji > > > > ----- > Reji Mathews > Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel > & Jboss Fuse ESB | Mule ESB ) > LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a > Twitter - reji_mathews > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Restlet-tp5767988.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- - Ravi *[ View My Youtube Channel <https://www.youtube.com/playlist?list=PL5Y_TlNjh0D59A4K3yQQR7gNAslnxDmRB> ]* Phone: +91 *98 509 760 91*