Matcher matcher = pattern.matcher(urlToMatch);
if (matcher.matches()) {
return "http4://" + restUrl +
"?bridgeEndpoint=true&throwExceptionOnFailure=false";
}
}
return "";
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Routing-on-REST-URL-patterns-tp5746514p5747055.html
Sent from the Camel - Users mailing list archive at Nabble.com.
exchange.getIn().setHeader("restUrl", urlToSend);
-Ravi
-Original Message-
From: mnusry [mailto:mnu...@gmail.com]
Sent: Tuesday, January 28, 2014 7:37 AM
To: users@camel.apache.org
Subject: Routing on REST URL patterns
I am struggling to get the following going,
I want to route REST
.otherwise()
.to("http4://" + DUrl +
"?bridgeEndpoint=true&throwExceptionOnFailure=false");
}
Note System properties are defined so that it is easy to add more url
patterns and make things configurable a little.
--
View this message in context:
http://camel.465427.n5.nabble.com/Routing-on-REST-URL-patterns-tp5746514.html
Sent from the Camel - Users mailing list archive at Nabble.com.