title: How can I pass string path param containing slash character?
body: <p>I have this REST resource:</p>
  
  <pre><code>@GET
  @Path("{business},{year},{sample}")
  @Produces(MediaType.APPLICATION_JSON)
  public Response getSample(
          @PathParam("business") String business,
          @PathParam("year") String year,
          @PathParam("sample") String sampleId {
      Sample sample = dao.findSample(business, year, sampleId);
      return Response.ok(sample).build();
  }
  </code></pre>
  
  <p><code>sample</code> param can contain slash character: <code>6576/M982</code>, for instance.</p>
  
  <p>I'm calling it with <code>http://ip:port/samples/2000,2006,6576/M982</code> but does not work, obviously.</p>
  
  <p>I have also tried with <code>http://ip:port/samples/2000,2006,6576%2FM982</code>, encoding the slash as <code>%2F</code>, but doesn't work either, it doesn't reach the endpoint.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I'm using Retrofit to call the endpoint and I do this:</p>
  
  <pre><code>@GET("/samples/{business},{year},{sampleId}")
  Observable&lt;Sample&gt; getSampleById(
          @Path("business") String business,
          @Path("year") String year,
          @Path(value = "sampleId", encoded = true) String sampleId);
  </code></pre>
  
  <p>With <code>encoded = true</code>, but still not working.</p>