Exemplo n.º 1
0
 /**
  * Parses welcome files out of web.xml.
  *
  * @param rootElement web.xml root element
  * @param webApp web app for web.xml
  */
 private static void parseWelcomeFiles(final Element rootElement, final WebApp webApp) {
   final Element listElement = getChild(rootElement, "welcome-file-list");
   if (listElement != null) {
     final Element[] elements = getChildren(listElement, "welcome-file");
     if (elements != null && elements.length > 0) {
       for (Element element : elements) {
         webApp.addWelcomeFile(getTextContent(element));
       }
     }
   }
 }