protected void addFilterPathMapping(String pathSpec, WebAppContext webAppCtx) {
    for (String name : filterNames) {
      FilterMapping fmap = new FilterMapping();
      fmap.setPathSpec(pathSpec);
      fmap.setFilterName(name);
      fmap.setDispatches(FilterMapping.ALL);
      webAppCtx.getServletHandler().addFilterMapping(fmap);
    }
  }
Add the path spec to the filter path mapping.
@param pathSpec  The path spec
@param webAppCtx The WebApplicationContext to add to
hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java