title: REST resources with embedded Jetty server
body: <p>I am using an embedded Jetty server to create a POC for a REST service.</p>
  
  <p>I want to create the following resources;</p>
  
  <pre><code>/foo/{id}
  /foo/{id}/bar
  </code></pre>
  
  <p>I require each to call different classes, each of which access the id within the path.</p>
  
  <p>I have the following code;</p>
  
  <pre><code>        Server server = new Server(7777);
          ServletHandler handler = new ServletHandler();
          server.setHandler(handler);
  
          handler.addServletWithMapping(DefaultServlet.class, "/*");
          handler.addServletWithMapping(Foo.class, "/foo/*");
          handler.addServletWithMapping(Bar.class, "/foo/*/bar");
  </code></pre>
  
  <p>Unfortunately, both requests result in Foo.class.</p>
  
  <p>Does Jetty allow me to achieve this?  Can I set a more intelligent path?</p>