Class SessionRestoringHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler, Lifecycle

    public class SessionRestoringHandler
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleRequest​(io.undertow.server.HttpServerExchange exchange)  
      boolean isStarted()  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SessionRestoringHandler

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

      • 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 java.lang.Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        java.lang.Exception