@Test public void testGetServletNames() throws Exception { final Document webXml = WebXmlUtils.asDocument( new File( WebXmlUtilsTest.class.getResource( "/org/jivesoftware/util/test-web.xml" ).toURI() ) ); final List<String> results = WebXmlUtils.getServletNames( webXml ); assertNotNull( results ); final Iterator iterator = results.iterator(); assertEquals( "PluginServlet", iterator.next() ); assertEquals( "FaviconServlet", iterator.next() ); assertEquals( "dwr-invoker", iterator.next() ); assertEquals( "PluginIconServlet", iterator.next() ); assertFalse( iterator.hasNext() ); }
public static List<String> getServletNames( Document webXml ) { return getNames( "servlet", webXml ); }
WebXmlUtils { public static List<String> getServletNames( Document webXml ) { return getNames( "servlet", webXml ); } }
WebXmlUtils { public static List<String> getServletNames( Document webXml ) { return getNames( "servlet", webXml ); }  }
WebXmlUtils { public static List<String> getServletNames( Document webXml ) { return getNames( "servlet", webXml ); }  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 List<String> getServletNames( Document webXml ) { return getNames( "servlet", webXml ); }  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 );  }