Camel : How to set matchOnUriPrefix=true for jetty component configured in <restConfiguration>
<p>I have following camel routing configuration.</p>

<pre><code>&lt;camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"&gt;

&lt;!-- Rest Configuration --&gt;
&lt;restConfiguration component="jetty" port="9092" bindingMode="auto"&gt;
    &lt;dataFormatProperty key="json.in.disableFeatures" value="FAIL_ON_UNKNOWN_PROPERTIES" /&gt;
&lt;/restConfiguration&gt;

&lt;rest path="/" consumes="application/json"
        produces="application/json"&gt;
        &lt;post uri="/" type="com.aaa.xxxx.esb.config.xxxxEsbJsonMapping"&gt;
            &lt;route&gt;
                &lt;setHeader headerName="Authorization"&gt;
                    &lt;simple&gt;Basic YWRtaXXXXWRtaW4=&lt;/simple&gt;
                &lt;/setHeader&gt;
                &lt;setHeader headerName="CamelHttpMethod"&gt;
                    &lt;constant&gt;POST&lt;/constant&gt;
                &lt;/setHeader&gt;

                &lt;setHeader headerName="CamelHttpMethod"&gt;
                    &lt;constant&gt;POST&lt;/constant&gt;
                &lt;/setHeader&gt;

                &lt;setHeader headerName="RestEndpointURL"&gt;
                    &lt;simple&gt;
                        http://${body.serviceURL}?bridgeEndpoint=true
                    &lt;/simple&gt;
                &lt;/setHeader&gt;
                &lt;setBody&gt;
                    &lt;simple&gt;{"UserDetails": ${body.serviceDataJsonObj}}&lt;/simple&gt;
                &lt;/setBody&gt;

                &lt;log message="Exchanged headers : ${headers.RestEndpointURL}" /&gt;

                &lt;recipientList&gt;
                    &lt;simple&gt;${headers.RestEndpointURL}&lt;/simple&gt;
                &lt;/recipientList&gt;

            &lt;/route&gt;
        &lt;/post&gt;
    &lt;/rest&gt;
</code></pre>

<p>What I need to know is where I can set </p>

<blockquote>
  <p>matchOnUriPrefix=true</p>
</blockquote>

<p>option for the jetty component which I have already configured for camel rest.</p>

<p>According to the Claus Ibsen answer, I changed configuration XML as follows.</p>

<pre><code>&lt;camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"&gt;

    &lt;!-- Rest Configuration --&gt;
    &lt;restConfiguration component="jetty" port="9092"
        bindingMode="auto"&gt;
        &lt;dataFormatProperty key="json.in.disableFeatures"
            value="FAIL_ON_UNKNOWN_PROPERTIES" /&gt;
        &lt;componentProperty key="matchOnUriPrefix" value="true" /&gt;
    &lt;/restConfiguration&gt;

    &lt;!-- Rest Services --&gt;
&lt;rest path="/" consumes="application/json" produces="application/json"&gt;
        &lt;post uri="/" type="com.aaa.xxxx.esb.config.xxxxEsbJsonMapping"&gt;
            &lt;route&gt;
                &lt;setHeader headerName="Authorization"&gt;
                    &lt;simple&gt;Basic YWRXXX46YWRtaW4=&lt;/simple&gt;
                &lt;/setHeader&gt;
                &lt;setHeader headerName="CamelHttpMethod"&gt;
                    &lt;constant&gt;POST&lt;/constant&gt;
                &lt;/setHeader&gt;

                &lt;setHeader headerName="CamelHttpMethod"&gt;
                    &lt;constant&gt;POST&lt;/constant&gt;
                &lt;/setHeader&gt;

                &lt;setHeader headerName="RestEndpointURL"&gt;
                    &lt;simple&gt;
                        http://${body.serviceURL}?bridgeEndpoint=true
                    &lt;/simple&gt;
                &lt;/setHeader&gt;
                &lt;setBody&gt;
                    &lt;simple&gt;{"SystemUserDetails": ${body.serviceDataJsonObj}}&lt;/simple&gt;
                &lt;/setBody&gt;

                &lt;log message="Exchanged headers : ${headers.RestEndpointURL}" /&gt;

                &lt;recipientList&gt;
                    &lt;simple&gt;${headers.RestEndpointURL}&lt;/simple&gt;
                &lt;/recipientList&gt;

            &lt;/route&gt;
        &lt;/post&gt;
    &lt;/rest&gt;

&lt;/camelContext&gt;
</code></pre>

<p></p>

<p>I'm using servicemix apache-servicemix-7.0.0.M2
I upgraded its camel ver 2.16.3 to 2.17.3</p>

<p>Thanks</p>