title: Jersey multiple get responses on same path possible?
body: <p>Currently I am using <code>Jetty</code> + <code>Jersey</code> to make it possible to have different responses according to the <code>@GET</code> parameters, if an <code>id</code> is passed it shall return the task, if <code>not</code> return all tasks.</p>
  
  <pre><code>@GET
  @Path("task")
  @Produces(MediaType.APPLICATION_JSON)
  public ArrayList&lt;Task&gt; getTask(){
      return tasks;
  }
  
  @GET
  @Path("task")
  @Produces(MediaType.APPLICATION_JSON)
  public ArrayList&lt;Task&gt; getTasks(@QueryParam("id") String id){
      return task(uuid);
  }
  </code></pre>
  
  <p>Is this possible? How can I do it?</p>