title: JAX-RS multiple classes with the same path
body: <p>With JAX-RS, is it possible to have more than one class assigned to a single path? I'm trying to do something like this:</p>
  
  <pre><code>@Path("/foo")
  public class GetHandler {
      @GET
      public Response handleGet() { ...
  }
  
  @Path("/foo")
  public class PostHandler {
      @POST
      @Consumes(MediaType.APPLICATION_JSON)
      public Response handlePost() { ...
  }
  </code></pre>
  
  <p>This apparently isn't allowed as I get:</p>
  
  <pre><code>com.sun.jersey.api.container.ContainerException: A root resource, class PostHandler, has a non-unique URI template /foo
  </code></pre>
  
  <p>I can always create one class to handle requests and then delegate to helper classes. I was hoping there was a standard way of doing so.</p>