title: JAX-RS: Retrieve path pattern in ContainerRequestFilter
body: <p>I am implementing a pre matching <code>ContainerRequestFilter</code> and would like to retrieve the <code>@Path</code> pattern of my resource which is about to be invoked.</p>
  
  <p>Here is my resource</p>
  
  <pre><code>Path("/v1/partner/{partnerId}/adresse")
  public interface AdresseResource
  {
     @GET
     @Produces({ MediaType.APPLICATION_JSON })
     public Response handleAdresseCollectionGet(@Context UriInfo uriInfo, @PathParam("partnerId") String partnerId);
  
     // Other methods omitted
  }
  </code></pre>
  
  <p>In my filter I would like to get the <code>/v1/partner/{partnerId}/adresse</code> pattern from my Path annotation. But I can't get it out of the <code>ContainerRequestContext</code> instance. I would have expected this information within the <code>UriInfo</code> but <code>encodedPath</code> and <code>matchingPath</code> are the same.</p>
  
  <p>Can you help me on this?</p>
  
  <p><img src="https://i.stack.imgur.com/Vox27.jpg" alt="enter image description here"></p>