Class DistributedJEESessionStore

  • All Implemented Interfaces:
    org.pac4j.core.context.session.SessionStore

    @Transactional(transactionManager="ticketTransactionManager")
    public class DistributedJEESessionStore
    extends java.lang.Object
    implements org.pac4j.core.context.session.SessionStore
    Since:
    6.1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<org.pac4j.core.context.session.SessionStore> buildFromTrackableSession​(org.pac4j.core.context.WebContext context, java.lang.Object trackableSession)  
      boolean destroySession​(org.pac4j.core.context.WebContext webContext)  
      protected java.lang.String fetchSessionIdFromContext​(org.pac4j.core.context.WebContext webContext)
      Fetch session id from context.
      java.util.Optional get​(org.pac4j.core.context.WebContext context, java.lang.String key)  
      java.util.Optional<java.lang.String> getSessionId​(org.pac4j.core.context.WebContext webContext, boolean create)  
      java.util.Optional getTrackableSession​(org.pac4j.core.context.WebContext context)  
      boolean renewSession​(org.pac4j.core.context.WebContext context)  
      void set​(org.pac4j.core.context.WebContext context, java.lang.String key, java.lang.Object value)  
      • Methods inherited from class java.lang.Object

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

      • DistributedJEESessionStore

        public DistributedJEESessionStore()
    • Method Detail

      • getSessionId

        public java.util.Optional<java.lang.String> getSessionId​(org.pac4j.core.context.WebContext webContext,
                                                                 boolean create)
        Specified by:
        getSessionId in interface org.pac4j.core.context.session.SessionStore
      • get

        public java.util.Optional get​(org.pac4j.core.context.WebContext context,
                                      java.lang.String key)
        Specified by:
        get in interface org.pac4j.core.context.session.SessionStore
      • set

        public void set​(org.pac4j.core.context.WebContext context,
                        java.lang.String key,
                        java.lang.Object value)
        Specified by:
        set in interface org.pac4j.core.context.session.SessionStore
      • destroySession

        public boolean destroySession​(org.pac4j.core.context.WebContext webContext)
        Specified by:
        destroySession in interface org.pac4j.core.context.session.SessionStore
      • getTrackableSession

        public java.util.Optional getTrackableSession​(org.pac4j.core.context.WebContext context)
        Specified by:
        getTrackableSession in interface org.pac4j.core.context.session.SessionStore
      • buildFromTrackableSession

        public java.util.Optional<org.pac4j.core.context.session.SessionStore> buildFromTrackableSession​(org.pac4j.core.context.WebContext context,
                                                                                                         java.lang.Object trackableSession)
        Specified by:
        buildFromTrackableSession in interface org.pac4j.core.context.session.SessionStore
      • renewSession

        public boolean renewSession​(org.pac4j.core.context.WebContext context)
        Specified by:
        renewSession in interface org.pac4j.core.context.session.SessionStore
      • fetchSessionIdFromContext

        protected java.lang.String fetchSessionIdFromContext​(org.pac4j.core.context.WebContext webContext)
        Fetch session id from context.
        Parameters:
        webContext - the web context
        Returns:
        the string