Class SessionRestoringHandler

java.lang.Object
io.undertow.servlet.handlers.SessionRestoringHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler, Lifecycle

public class SessionRestoringHandler extends Object implements io.undertow.server.HttpHandler, Lifecycle
A handler that restores persistent HTTP session state for requests in development mode.

This handler should not be used in production environments.

Author:
Stuart Douglas
  • Constructor Details

    • SessionRestoringHandler

      public SessionRestoringHandler(String deploymentName, io.undertow.server.session.SessionManager sessionManager, ServletContextImpl servletContext, io.undertow.server.HttpHandler next, SessionPersistenceManager sessionPersistenceManager)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface Lifecycle
    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Throws:
      Exception
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface Lifecycle