Class CachedPersistedSessionRepository
java.lang.Object
de.hybris.platform.servicelayer.web.session.CachedPersistedSessionRepository
- All Implemented Interfaces:
org.springframework.session.SessionRepository
public class CachedPersistedSessionRepository
extends Object
implements org.springframework.session.SessionRepository
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCachedPersistedSessionRepository(org.springframework.core.serializer.Deserializer deserializer, SessionPersister sessionPersister, String extension, String contextRoot) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected PersistedSessionprotected PersistedSessionorg.springframework.session.Sessionvoidstatic voidSpring Session invalidates session by deleting current one, creating new and copying all attributes.protected PersistedSessionorg.springframework.session.SessiongetSession(String id) protected PersistedSessionprotected voidvoidsave(org.springframework.session.Session session) protected voidsaveCachedPersistedSession(org.springframework.session.Session session)
-
Field Details
-
SESSION
- See Also:
-
-
Constructor Details
-
CachedPersistedSessionRepository
public CachedPersistedSessionRepository(org.springframework.core.serializer.Deserializer deserializer, SessionPersister sessionPersister, String extension, String contextRoot)
-
-
Method Details
-
createSession
public org.springframework.session.Session createSession()- Specified by:
createSessionin interfaceorg.springframework.session.SessionRepository
-
save
public void save(org.springframework.session.Session session) - Specified by:
savein interfaceorg.springframework.session.SessionRepository
-
getSession
- Specified by:
getSessionin interfaceorg.springframework.session.SessionRepository
-
delete
- Specified by:
deletein interfaceorg.springframework.session.SessionRepository
-
executeWithoutClosingJaloSessionOnDelete
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
-
saveCachedPersistedSession
protected void saveCachedPersistedSession(org.springframework.session.Session session) -
getCachedPersistedSession
-
removeCachedPersistedSession
-
closeJaloSession
-
loadFromPersistenceAndDeserialize
-
createNewSession
-