code: protected void initFilterMapping(XmlParser.Node node)
      {
          String filterName=node.getString("filter-name",false,true);
          String pathSpec=node.getString("url-pattern",false,true);
          String servletName=node.getString("servlet-name",false,true);
          int dispatcher=Dispatcher.__DEFAULT;
          Iterator iter=node.iterator("dispatcher");
          while(iter.hasNext())
          {
              String d=((XmlParser.Node)iter.next()).toString(false,true);
              dispatcher|=Dispatcher.type(d);
          }
              
          FilterHolder holder=(servletName!=null)
                  ?getWebApplicationHandler().addFilterServletMapping(servletName, filterName, dispatcher)
                  :getWebApplicationHandler().addFilterPathMapping(pathSpec, filterName, dispatcher);
      }
docs: /* ------------------------------------------------------------