results[welcomeFiles.length] = name;
welcomeFiles = results;
}
- postWelcomeFiles();
if(this.getState().equals(LifecycleState.STARTED))
fireContainerEvent(ADD_WELCOME_FILE_EVENT, name);
}
}
// Inform interested listeners
- postWelcomeFiles();
if(this.getState().equals(LifecycleState.STARTED))
fireContainerEvent(REMOVE_WELCOME_FILE_EVENT, name);
JarScanner.class.getName(), getJarScanner());
}
- if (ok) {
- postWelcomeFiles();
- }
-
// Set up the context init params
mergeParameters();
}
- /**
- * Post a copy of our current list of welcome files as a servlet context
- * attribute, so that the default servlet can find them.
- */
- private void postWelcomeFiles() {
-
- getServletContext().setAttribute("org.apache.catalina.WELCOME_FILES",
- welcomeFiles);
-
- }
-
public String getHostname() {
Container parentHost = getParent();
if (parentHost != null) {