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);
}
Aggregations