@@ -0,0 +1,754 @@
+package de.asw.courses.web2016.demo.backend.jaxrs;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.core.Context;%0Aimport javax.ws.rs.core.UriInfo;%0A%0A@Path(%22/subResourceExample%22)%0Apublic class SubResourceExampleResource %7B%0A%0A%09@Context%0A%09UriInfo uriInfo;%0A%09%0A%09@GET%0A%09public String get()%7B%0A%09%09return %22GET /subResourceExample%22;%0A%09%7D%0A%09%0A%09@GET%0A%09@Path(%22/sub%22) // /example/sub%0A%09public String getSubResource()%7B%0A%09%09return %22GET /subResourceExample/sub%22;%0A%09%7D%0A%09%0A%09@GET%0A%09@Path(%22/sub/sub%22) // /example/sub/sub%0A%09public String getSubSubResource()%7B%0A%09%09return %22GET /subResourceExample/sub/sub%22;%0A%09%7D%0A%09%0A%09@GET%0A%09@Path(%22/pattern/%7BsubResource:.*%7D%22) // /pattern/foo/bar/baz%0A%09public String getWildcardPatternResource()%7B%0A%09%09return %22GET /pattern/* %22 + uriInfo.getRequestUri();%0A%09%7D%0A%7D%0A

Add example for JAX-RS subresources