code: protected void addFilterPathMapping(String pathSpec,
        Context webAppCtx) {
      ServletHandler handler = webAppCtx.getServletHandler();
      for(String name : filterNames) {
        FilterMapping fmap = new FilterMapping();
        fmap.setPathSpec(pathSpec);
        fmap.setFilterName(name);
        fmap.setDispatches(Handler.ALL);
        handler.addFilterMapping(fmap);
      }
    }
docs: Add the path spec to the filter path mapping.
  @param pathSpec The path spec
  @param webAppCtx The WebApplicationContext to add to