Class DefaultSessionCloseStrategy
- java.lang.Object
-
- de.hybris.platform.servicelayer.web.DefaultSessionCloseStrategy
-
- All Implemented Interfaces:
SessionCloseStrategy
- Direct Known Subclasses:
HacSessionCloseStrategy
public class DefaultSessionCloseStrategy extends java.lang.Object implements SessionCloseStrategy
Default strategy that sets max inactive interval for each http session based on hybris properties. It first searches for [ext_name].session.timeout property and falls back to default.session.timeout property if extension specific property was not set.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_SESSION_TIMEOUT
-
Constructor Summary
Constructors Constructor Description DefaultSessionCloseStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseJaloSession(JaloSession js)voidcloseSessionInHttpSession(javax.servlet.http.HttpSession session)voidremoveJaloSessionFromHttpSession(javax.servlet.http.HttpSession session)voidsetTimeoutOnHttpSessionCreation(javax.servlet.http.HttpSession httpSession)
-
-
-
Field Detail
-
DEFAULT_SESSION_TIMEOUT
public static final int DEFAULT_SESSION_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
closeSessionInHttpSession
public void closeSessionInHttpSession(javax.servlet.http.HttpSession session)
- Specified by:
closeSessionInHttpSessionin interfaceSessionCloseStrategy
-
setTimeoutOnHttpSessionCreation
public void setTimeoutOnHttpSessionCreation(javax.servlet.http.HttpSession httpSession)
- Specified by:
setTimeoutOnHttpSessionCreationin interfaceSessionCloseStrategy
-
closeJaloSession
public void closeJaloSession(JaloSession js)
-
removeJaloSessionFromHttpSession
public void removeJaloSessionFromHttpSession(javax.servlet.http.HttpSession session)
-
-