Parsing http path params from http-server consumer endpoint

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Parsing http path params from http-server consumer endpoint

contactreji
Hello community

I use camel jetty endpoint to expose an http server endpoint in camel.
Something like this

from("jetty:http://0.0.0.0:8081/{name}/test?httpMethodRestrict=GET")
        .to("log:AUDIT?showAll=true")
        .end();


I can see that query param and headers get mapped into exchange
headers as variables. Is there any way can get the path variables as
well mapped as header key-value pairs?


- Reji Mathews
Reji Mathews Sr. Engineer - Middleware Integrations / SOA ( Open Source - Apache Camel & Jboss Fuse ESB | Mule ESB ) LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a Twitter - reji_mathews