title: Jersey - JAX/RS - how to handle different content-type using different handlers
body: <p>I would like to handle two different media types for the same REST URL using different handlers using Jersey/JAX-RS. Is that possible?</p>
  
  <p>For example:</p>
  
  <pre><code>@Path("/foo")
  public class FooHandler {
  
  
      @POST
      @Path("/x")
      @Consumes("application/json")
      public Response handleJson() {
      }
  
      @POST
      @Path("/x")
      @Consumes("application/octet-stream")
      public Response handleBinary() {
      }
  
  }
  </code></pre>