<div dir="ltr"><div><div><div>Something like this:<br><br></div>PathHandler root = new PathHandler();<br></div>root.addExactPath(&quot;/&quot;, servlet-root-handler);<br>root.addExactPath(&quot;/static-stuff&quot;, new ResourceHandler(...));<br>
<br></div><div>this way you map your servlet app to / and then override what ever you want below it with resource handler.<br></div><div><br>--<br></div>tomaz<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Mar 6, 2014 at 5:45 PM, Ari King <span dir="ltr">&lt;<a href="mailto:ari.brandeis.king@gmail.com" target="_blank">ari.brandeis.king@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There can only be one root handler. Basically handlers chain together, so the current handler picks the next handler (or generates a response).  <br>



It sounds like what you want to do is map the JAX-RS handlers to the root of the servlet deployment, and then use a path handler with the servlet deployment under /api and the resource handler under /. <br></blockquote></div>

<div>
<br>Yes, that was exactly what I was intending/attempting to do.<br><br></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Alternatively you just set the Servlet deployment&#39;s ResourceManager and then the resources will just be served up by the DefaultServlet. <br></blockquote><div><br></div></div><div>From the docs I know the &quot;ResourceManager&quot; is a built in handler, but is there more information on it or an example of how to set it?<br>


<br></div><div>Thanks.<span class="HOEnZb"><font color="#888888"><span><font color="#888888"><br><br></font></span></font></span></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888"><div>-Ari<br></div>
</font></span></font></span></div><br></div></div>
</div><br></div>
<br>_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>