Class SessionHandler

java.lang.Object
services.moleculer.web.middleware.session.SessionHandler
All Implemented Interfaces:
HttpConstants

public class SessionHandler extends Object implements HttpConstants
// Store "$session" block (in meta)
SessionHandler sessionHandler = new SessionHandler(broker);
gateway.setBeforeCall(sessionHandler.beforeCall());
gateway.setAfterCall(sessionHandler.afterCall());

// Session cookie handling
gateway.use(new SessionCookie());
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
    • store

      protected final SessionStore store
  • Constructor Details

    • SessionHandler

      public SessionHandler(services.moleculer.ServiceBroker broker)
    • SessionHandler

      public SessionHandler(services.moleculer.ServiceBroker broker, int sessionTimeout)
    • SessionHandler

      public SessionHandler(services.moleculer.cacher.Cacher cacher, int sessionTimeout)
    • SessionHandler

      public SessionHandler(SessionStore store)
  • Method Details