Search in sources :

Example 1 with HttpSessionTimeoutListener

use of com.canoo.dp.impl.server.servlet.HttpSessionTimeoutListener in project dolphin-platform by canoo.

the class HttpTimeoutModule method initialize.

@Override
public void initialize(final ServerCoreComponents coreComponents) throws ModuleInitializationException {
    Assert.requireNonNull(coreComponents, "coreComponents");
    final ServletContext servletContext = coreComponents.getInstance(ServletContext.class);
    final PlatformConfiguration configuration = coreComponents.getConfiguration();
    HttpSessionTimeoutListener sessionCleaner = new HttpSessionTimeoutListener(configuration);
    servletContext.addListener(sessionCleaner);
}
Also used : PlatformConfiguration(com.canoo.platform.core.PlatformConfiguration) HttpSessionTimeoutListener(com.canoo.dp.impl.server.servlet.HttpSessionTimeoutListener) ServletContext(javax.servlet.ServletContext)

Aggregations

HttpSessionTimeoutListener (com.canoo.dp.impl.server.servlet.HttpSessionTimeoutListener)1 PlatformConfiguration (com.canoo.platform.core.PlatformConfiguration)1 ServletContext (javax.servlet.ServletContext)1