Package cloud.piranha.session.hazelcast
Class HazelcastHttpSessionManager
- java.lang.Object
-
- cloud.piranha.webapp.impl.DefaultHttpSessionManager
-
- cloud.piranha.session.hazelcast.HazelcastHttpSessionManager
-
- All Implemented Interfaces:
HttpSessionManager
,SessionCookieConfig
public class HazelcastHttpSessionManager extends DefaultHttpSessionManager
The Hazelcast HTTP session manager.- Author:
- Manfred Riem ([email protected])
-
-
Field Summary
-
Fields inherited from class cloud.piranha.webapp.impl.DefaultHttpSessionManager
attributeListeners, comment, defaultSessionTrackingModes, domain, httpOnly, idListeners, maxAge, name, path, secure, sessionListeners, sessions, sessionTimeout, sessionTrackingModes, webApplication
-
-
Constructor Summary
Constructors Constructor Description HazelcastHttpSessionManager()
Constructor.HazelcastHttpSessionManager(String name)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
changeSessionId(HttpServletRequest request)
Change the session id.HttpSession
createSession(WebApplication webApplication, HttpServletRequest request)
Create the HTTP session.HttpSession
getSession(WebApplication webApplication, HttpServletRequest request, String currentSessionId)
Get the session.-
Methods inherited from class cloud.piranha.webapp.impl.DefaultHttpSessionManager
addListener, attributeAdded, attributeRemoved, attributeReplaced, destroySession, encodeRedirectURL, encodeURL, getComment, getDefaultSessionTrackingModes, getDomain, getEffectiveSessionTrackingModes, getMaxAge, getName, getPath, getSessionCookieConfig, getSessionTimeout, hasSession, isHttpOnly, isSecure, setComment, setDomain, setHttpOnly, setMaxAge, setName, setPath, setSecure, setSessionTimeout, setSessionTrackingModes
-
-
-
-
Constructor Detail
-
HazelcastHttpSessionManager
public HazelcastHttpSessionManager()
Constructor.
-
HazelcastHttpSessionManager
public HazelcastHttpSessionManager(String name)
Constructor.- Parameters:
name
- the name used for the hazelcast session map.
-
-
Method Detail
-
changeSessionId
public String changeSessionId(HttpServletRequest request)
Change the session id.- Specified by:
changeSessionId
in interfaceHttpSessionManager
- Overrides:
changeSessionId
in classDefaultHttpSessionManager
- Parameters:
request
- the request.- Returns:
- the session id.
-
createSession
public HttpSession createSession(WebApplication webApplication, HttpServletRequest request)
Create the HTTP session.- Specified by:
createSession
in interfaceHttpSessionManager
- Overrides:
createSession
in classDefaultHttpSessionManager
- Parameters:
webApplication
- the web application.request
- the request.- Returns:
- the HTTP session.
-
getSession
public HttpSession getSession(WebApplication webApplication, HttpServletRequest request, String currentSessionId)
Get the session.- Specified by:
getSession
in interfaceHttpSessionManager
- Overrides:
getSession
in classDefaultHttpSessionManager
- Parameters:
webApplication
- the web application.request
- the request.currentSessionId
- the current session id.- Returns:
- the HTTP session.
-
-