how to get path param from ContainerRequestContext
<p>I want to apply authorization filter for my REST API endpoint, and the filter need path parameter to do the filtering. here is my endpoint and code:</p>

<p>endpoint:</p>

<pre><code>curl --url 'localhost:80/reports/resources/org/12345/product/111 ' --request GET --header 'Authorization: &lt;token here&gt;'
</code></pre>

<p>resource code:</p>

<pre><code>@Path("/resources")
public class MyResource extends AbstractResource {
...
    @GET
    @Path("/org/{orgId}/product/{productId}")
    @Produces(MediaType.APPLICATION_JSON)
    @RoleAuthenticated
    public Response getResourcesReport(@PathParam("orgId") String orgId,
                                       @PathParam("productId") String productId,
                                       @Context HttpHeaders headers){....}
</code></pre>

<p>Filter:</p>

<pre><code>@PreMatching
@RoleAuthenticated
public class AuthorizationFilter implements ContainerRequestFilter {
    @Override
    public void filter(ContainerRequestContext requestContext) throws IOException {
            MultivaluedMap&lt;String, String&gt; pathparam = requestContext.getUriInfo().getPathParameters();   &lt;--  return empty map  
}
</code></pre>

<p>I was expecting <code>requestContext.getUriInfo().getPathParameters()</code> returned map of the following:</p>

<pre><code>orgId 12345
productId 111
</code></pre>

<p>how come it return an empty map ? and How can I get path parameters from <code>ContainerRequestContext</code>? </p>