title: Extracting the resource method name from JAX-RS ContainerRequestFilter & ContainerResponseFilter
body: <p>I have a Filter class </p>
  
  <pre><code>    @Provider
      @PreMatching
      @Priority(1700)
      A_authenticationFilter implements ContainerRequestFilter 
      {
      try {
              // Logic
              }
      catch {
          throw Exception
      }
      }
  </code></pre>
  
  <p>Another Filter class</p>
  
  <pre><code>    @Provider
      @PreMatching
      @Priority(5000)
      B_authenticationFilter implements ContainerRequestFilter,ContainerResponseFilter {
  
      @Context
      ResourceInfo resourceInfo;
  
      @Override
      public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) { }
  
      @Override
      public void filter(ContainerRequestContext requestContext { }
  
  
      }
  </code></pre>
  
  <p>A Controller class
  //JAX-RS controller</p>
  
  <pre><code>    @Path
      TokenServicesImpl {
  
      @POST
      @Path
      public Response login() {
      }
  
      }
  </code></pre>
  
  <p>What happens is When I want to call login of Controller class it goes through 1st A_authenticationFilter and it fails due to some validation error in headers, therefore login method doesn't get executed and 
  resourceInfo.getResourceMethod() resolves to be null in B_authenticationFilter's filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext).</p>
  
  <p>I suppose resourceInfo gets populated only when the controller method get executed. If login method is not executed then is there any other way though which I can get populated resourceInfo object with resource method name i.e. 'login' in it?</p>