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.