Class CachedPersistedSessionRepository

  • All Implemented Interfaces:
    org.springframework.session.SessionRepository

    public class CachedPersistedSessionRepository
    extends java.lang.Object
    implements org.springframework.session.SessionRepository
    • Constructor Detail

      • CachedPersistedSessionRepository

        public CachedPersistedSessionRepository​(org.springframework.core.serializer.Deserializer deserializer,
                                                SessionPersister sessionPersister,
                                                java.lang.String extension,
                                                java.lang.String contextRoot)
    • Method Detail

      • createSession

        public org.springframework.session.Session createSession()
        Specified by:
        createSession in interface org.springframework.session.SessionRepository
      • save

        public void save​(org.springframework.session.Session session)
        Specified by:
        save in interface org.springframework.session.SessionRepository
      • getSession

        public org.springframework.session.Session getSession​(java.lang.String id)
        Specified by:
        getSession in interface org.springframework.session.SessionRepository
      • delete

        public void delete​(java.lang.String id)
        Specified by:
        delete in interface org.springframework.session.SessionRepository
      • executeWithoutClosingJaloSessionOnDelete

        public static void executeWithoutClosingJaloSessionOnDelete​(java.lang.Runnable runnable)
        Spring Session invalidates session by deleting current one, creating new and copying all attributes. This method prevents call to CachedPersistedSessionRepository.delete from closing jalosession because it will be copied to new http session and cannot be closed!
        Parameters:
        runnable - runnable
      • createCachedPersistedSession

        protected PersistedSession createCachedPersistedSession()
      • saveCachedPersistedSession

        protected void saveCachedPersistedSession​(org.springframework.session.Session session)
      • getCachedPersistedSession

        protected PersistedSession getCachedPersistedSession​(java.lang.String id)
      • removeCachedPersistedSession

        protected void removeCachedPersistedSession​(java.lang.String id)
      • closeJaloSession

        protected void closeJaloSession​(java.lang.String id)
      • loadFromPersistenceAndDeserialize

        protected PersistedSession loadFromPersistenceAndDeserialize​(java.lang.String id)
      • createNewSession

        protected PersistedSession createNewSession​(java.lang.String id)