Search in sources :

Example 1 with SessionRestoringHandler

use of io.undertow.servlet.handlers.SessionRestoringHandler in project undertow by undertow-io.

the class DeploymentManagerImpl method handleDevelopmentModePersistentSessions.

private HttpHandler handleDevelopmentModePersistentSessions(HttpHandler next, final DeploymentInfo deploymentInfo, final SessionManager sessionManager, final ServletContextImpl servletContext) {
    final SessionPersistenceManager sessionPersistenceManager = deploymentInfo.getSessionPersistenceManager();
    if (sessionPersistenceManager != null) {
        SessionRestoringHandler handler = new SessionRestoringHandler(deployment.getDeploymentInfo().getDeploymentName(), sessionManager, servletContext, next, sessionPersistenceManager);
        deployment.addLifecycleObjects(handler);
        return handler;
    }
    return next;
}
Also used : SessionRestoringHandler(io.undertow.servlet.handlers.SessionRestoringHandler) SessionPersistenceManager(io.undertow.servlet.api.SessionPersistenceManager)

Aggregations

SessionPersistenceManager (io.undertow.servlet.api.SessionPersistenceManager)1 SessionRestoringHandler (io.undertow.servlet.handlers.SessionRestoringHandler)1