title: Can Jersey build a resource class through specific constructor based on the request URI?
body: <p>I have a class</p>
  
  <pre><code>@Path("/foo")
  public class Foo {
  
      public Foo() {
      }
  
      public Foo(int n) {
      }
  
      @GET
      @Produces(MediaType.TEXT_HTML)
      @Path("/isAlive")
      public String isAlive() {
      }
  
      @POST
      @Consumes(MediaType.APPLICATION_JSON)
      @Produces(MediaType.APPLICATION_JSON)
      @Path("/getConfigFromDB")
      public Response getConfigFromDB(Request) {
      }
  </code></pre>
  
  <p>Suppose that this is the first call to this web app and the the class has to be constructed for the first time. Can I configure Jersey to choose the second constructor if the path is <code>"http://localhost/foo/isAlive"</code> and the first constructor if the request path is <code>"http://localhost/foo/getConfigFromDB"</code>?</p>