title: Does a servlet filter know the destination of a REST request?
body: <p>Inside a javax servlet filter, is there a way to know to which servlet where the request is going?</p>
  
  <p>I have some REST resource methods, annotated with JAX-RS (@Path, @GET and so forth), and scanned by RESTEasy.</p>
  
  <p>There is a servlet filter checking the user's permissions for each request, but I would like to differentiate between the REST resources. (They should require different priviledges.)</p>
  
  <p>Is the resource method, for which the REST request is bound, known at this stage? Or is it only matched once the request reaches the servlet behind the filter?</p>
  
  <p>Thanks!</p>