title: Jersey 2.x does not contain WebResource and resource class. What can I use instead?
body: <p>I am trying to create a web API using Jersey. I am trying to run a method similar to this:</p>
  
  <pre><code>WebResource r = c.resource("http://localhost:8080/Jersey/rest/contacts");
  </code></pre>
  
  <p>However Jersey 2.x does not have a <code>WebResource</code> or <code>Resource</code> class. So what class can I use instead in order to have the uri <code>http://localhost:8080/Jersey/rest/contacts</code> as a parameter?
  This will be ran in a <code>ContactClient</code> class</p>