p>

 <pre>
 &#64;Path("widgets")
 public class WidgetsResource {
  &#64;GET
  String getList() {...}

  &#64;GET &#64;Path("{id}")
  String getWidget(&#64;PathParam("id") String id) {...}
 }
 </pre>

 <p>
 In the above, if the application path is <code>catalogue</code> and the application is deployed at
 <code>http://example.com/</code>, then <code>GET</code> requests for <code>http://example.com/catalogue/widgets</code> will be
 handled by the <code>getList</code> method while requests for <code>http://exa