for (String value : welcomeFiles.getWelcomeFiles())
context.addWelcomeFile(value);
}
// Session timeout
SessionConfigMetaData scmd = metaData.getSessionConfig();
if (scmd != null) {
context.setSessionTimeout(scmd.getSessionTimeout());
if (scmd.getSessionTrackingModes() != null) {
for (SessionTrackingModeType stmt : scmd.getSessionTrackingModes()) {
context.addSessionTrackingMode(stmt.toString());
}
}
if (scmd.getCookieConfig() != null) {
CookieConfigMetaData value = scmd.getCookieConfig();
org.apache.catalina.deploy.SessionCookie cookieConfig = new org.apache.catalina.deploy.SessionCookie();
cookieConfig.setName(value.getName());
cookieConfig.setDomain(value.getDomain());
cookieConfig.setPath(value.getPath());
cookieConfig.setComment(value.getComment());