code: public void addFilter(String name, String classname,
        Map<String, String> parameters) {
  
      final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
      defineFilter(webAppContext, name, classname, parameters, USER_FACING_URLS);
      final String[] ALL_URLS = { "/*" };
      for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
        if (e.getValue()) {
          Context ctx = e.getKey();
          defineFilter(ctx, name, classname, parameters, ALL_URLS);
          LOG.info("Added filter " + name + " (class=" + classname
              + ") to context " + ctx.getDisplayName());
        }
      }
      filterNames.add(name);
    }
docs: {@inheritDoc}