Hi Yeah I think there is some code that can be improved. I logged a ticket https://issues.apache.org/jira/browse/CAMEL-8734
On Fri, May 1, 2015 at 9:54 PM, hzariv <hza...@ebay.com> wrote: > I am trying to route a HTTP request from > http://mycompany.com:8080/Shopping?..... to > http://myservice.com:80/ws/svc/Shopping?..... which is my service end-point. > Here is example of the code: > > > public class ShopRoute extends RouteBuilder { > > private CamelContext camelContext; > > > @Inject > public ShopRoute(CamelContext camelContext) { > this.camelContext = camelContext; > } > > > @Override > public void configure() throws Exception { > > // This is my consumer > Endpoint fromEndPoint = > camelContext.getEndpoint("netty4-http:http://0.0.0.0:8080/Shopping"); > // This is my producer > Endpoint shoppingLW = camelContext.getEndpoint( > > String.format("netty4-http:http://%s:80/ws/svc/Shopping?throwExceptionOnFailure=false", > "myservice.com")); > > // route the request from > http://mycompany.com:8080/Shopping?..... to > http://myservice.com:80/ws/svc/Shopping?..... > from(fromEndPoint).to(shoppingLW); > } > } > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-create-case-insensitive-URI-route-with-netty4-http-tp5766517p5766580.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/