@Test public void testGetFilterInitParams() throws Exception { final Document webXml = WebXmlUtils.asDocument( new File( WebXmlUtilsTest.class.getResource( "/org/jivesoftware/util/test-web.xml" ).toURI() ) ); final String filterName = "AuthCheck"; final Map<String, String> result = WebXmlUtils.getFilterInitParams( webXml, filterName ); assertNotNull( result ); assertEquals( 1, result.size() ); assertEquals( "login.jsp,index.jsp?logout=true,setup/index.jsp,setup/setup-*,.gif,.png,error-serverdown.jsp,loginToken.jsp", result.get("excludes") ); }
public static Map<String, String> getFilterInitParams( Document webXml, String filterName ) { return getInitParams( "filter", webXml, filterName ); }
WebXmlUtils { public static Map<String, String> getFilterInitParams( Document webXml, String filterName ) { return getInitParams( "filter", webXml, filterName ); } }
WebXmlUtils { public static Map<String, String> getFilterInitParams( Document webXml, String filterName ) { return getInitParams( "filter", webXml, filterName ); }  }
WebXmlUtils { public static Map<String, String> getFilterInitParams( Document webXml, String filterName ) { return getInitParams( "filter", webXml, filterName ); }  static Document asDocument( File webXML ); static List<String> getServletNames( Document webXml ); static List<String> getFilterNames( Document webXml ); static String getServletClassName( Document webXml, String servletName ); static String getFilterClassName( Document webXml, String filterName ); static Map<String, String> getServletInitParams( Document webXml, String servletName ); static Map<String, String> getFilterInitParams( Document webXml, String filterName ); static Set<String> getServletUrlPatterns( Document webXml, String servletName ); static Set<String> getFilterUrlPatterns( Document webXml, String filterName ); }
WebXmlUtils { public static Map<String, String> getFilterInitParams( Document webXml, String filterName ) { return getInitParams( "filter", webXml, filterName ); }  static Document asDocument( File webXML ); static List<String> getServletNames( Document webXml ); static List<String> getFilterNames( Document webXml ); static String getServletClassName( Document webXml, String servletName ); static String getFilterClassName( Document webXml, String filterName ); static Map<String, String> getServletInitParams( Document webXml, String servletName ); static Map<String, String> getFilterInitParams( Document webXml, String filterName ); static Set<String> getServletUrlPatterns( Document webXml, String servletName ); static Set<String> getFilterUrlPatterns( Document webXml, String filterName );  }