It's easy to get HTTP method from the message header , if you are using camel-servlet or camel-jetty component.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Sunday, March 10, 2013 at 5:49 AM, ramrubio wrote: > I want to setup camel as a proxy between my client and server. > > My proxy server is running on tomcat. > > On my proxy server (camel end point) i want to perform dynamic routing to > route request to appropiate service end point on a different server. > > I'm new to camel but did notice that it supports dynamic routing. I want to > set this up on my tomcat server and was wondering if there were any examples > that i can begin with (new to camel). > > I also wanted to confirm that Camel support dynamic routing for all http > operations (GET, POST, PUT, DELETE) and that proxied request from Camel > Proxy End Point to actual server end point is the same http operation with > original http headers as the original request originated by the client. > > For Example: > > Client performs HTTP POST (with special headers) -> Camel Receives HTTP > POST and Routes to Server B as an HTTP POST (with special headers) -> Server > B receives HTTP POST (with special headers). > > I wanted to confirm this is possible with Camel on Tomcat. > > Thanks, > > /Ramon > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Routing-REST-request-to-external-URI-tp5728852p5728885.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).