|
|
@ -32,6 +32,7 @@ import org.eclipse.jetty.server.Connector;
|
|
|
|
import org.eclipse.jetty.server.HttpConnectionFactory;
|
|
|
|
import org.eclipse.jetty.server.HttpConnectionFactory;
|
|
|
|
import org.eclipse.jetty.server.Server;
|
|
|
|
import org.eclipse.jetty.server.Server;
|
|
|
|
import org.eclipse.jetty.server.ServerConnector;
|
|
|
|
import org.eclipse.jetty.server.ServerConnector;
|
|
|
|
|
|
|
|
import org.eclipse.jetty.server.SessionManager;
|
|
|
|
import org.eclipse.jetty.server.SslConnectionFactory;
|
|
|
|
import org.eclipse.jetty.server.SslConnectionFactory;
|
|
|
|
import org.eclipse.jetty.server.handler.ErrorHandler;
|
|
|
|
import org.eclipse.jetty.server.handler.ErrorHandler;
|
|
|
|
import org.eclipse.jetty.servlet.ErrorPageErrorHandler;
|
|
|
|
import org.eclipse.jetty.servlet.ErrorPageErrorHandler;
|
|
|
@ -237,13 +238,13 @@ public class JettyEmbeddedServletContainerFactory extends
|
|
|
|
.getClassLoader())) {
|
|
|
|
.getClassLoader())) {
|
|
|
|
addJspServlet(context);
|
|
|
|
addJspServlet(context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ServletContextInitializer[] initializersToUse = mergeInitializers(initializers);
|
|
|
|
ServletContextInitializer[] initializersToUse = mergeInitializers(initializers);
|
|
|
|
Configuration[] configurations = getWebAppContextConfigurations(context,
|
|
|
|
Configuration[] configurations = getWebAppContextConfigurations(context,
|
|
|
|
initializersToUse);
|
|
|
|
initializersToUse);
|
|
|
|
context.setConfigurations(configurations);
|
|
|
|
context.setConfigurations(configurations);
|
|
|
|
context.getSessionHandler().getSessionManager()
|
|
|
|
int sessionTimeout = (getSessionTimeout() > 0 ? getSessionTimeout() : -1);
|
|
|
|
.setMaxInactiveInterval(getSessionTimeout());
|
|
|
|
SessionManager sessionManager = context.getSessionHandler().getSessionManager();
|
|
|
|
|
|
|
|
sessionManager.setMaxInactiveInterval(sessionTimeout);
|
|
|
|
postProcessWebAppContext(context);
|
|
|
|
postProcessWebAppContext(context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|