Could pass parameters here return new SubResource(); } ! public class SubResource { @GET public String done() {...} // Recursion! @Path("{element}") public SubResource sub(@PathParam("element") String name) { // Perhaps do something with "name" or pass it .. return new SubResource(); } } Jersey