title: Specifying @Produces wildcard handling in JAX-RS
body: <p>Assume a class:</p>
  
  <pre><code>public class MyResource {
  
      @Path("/thing")
      public String getThing() {
          // returns HTML
      }
  
      @Path("/thing")
      @Produces(MediaType.APPLICATION_JSON)
      public String getThingJSON() {
          // returns JSON
      }
  }
  </code></pre>
  
  <p>How can I have requests with a header of <code>Accept: */*</code> be handled by <code>getThing()</code>? At the moment having a wildcard accept header results in <code>getThingJSON()</code> getting called. If I have an accept header of <code>Accept: text/html</code> then <code>getThing()</code> gets called.</p>