Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.

How do I let Jetty match wildcards

By default Jetty will only match on exact uri's. But you can instruct Jetty to match prefixes. For example

from("jetty://0.0.0.0:8123/foo").to("mock:foo");

In the route above Jetty will only match if the uri is an exact match, so it will match if you enter
http://0.0.0.0:8123/foo but not match if you do http://0.0.0.0:8123/foo/bar.

So if you want to enable wildcard matching you do as follows:

from("jetty://0.0.0.0:8123/foo?matchOnUriPrefix=true").to("mock:foo");

So now Jetty matches any endpoints with starts with foo.

To match any endpoint you can do:

from("jetty://0.0.0.0:8123?matchOnUriPrefix=true").to("mock:foo");
© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram