Package org.zkoss.zk.ui.http
Class SerializableSession
java.lang.Object
org.zkoss.zk.ui.http.SimpleSession
org.zkoss.zk.ui.http.SerializableSession
- All Implemented Interfaces:
Serializable,EventListener,jakarta.servlet.http.HttpSessionActivationListener,Scope,Session,SessionCtrl
public class SerializableSession
extends SimpleSession
implements jakarta.servlet.http.HttpSessionActivationListener, Serializable
Serializable
Session.- Author:
- tomyeh
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSerializableSession(WebApp wapp, Object hsess, Object request) Constructs a ZK session with either a HTTP session or a Portlet session.SerializableSession(WebApp wapp, jakarta.servlet.http.HttpSession hsess, Object request) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidsessionDidActivate(jakarta.servlet.http.HttpSessionEvent se) voidsessionWillPassivate(jakarta.servlet.http.HttpSessionEvent se) Methods inherited from class org.zkoss.zk.ui.http.SimpleSession
addScopeListener, getAttribute, getAttribute, getAttributes, getDesktopCache, getDeviceType, getMaxInactiveInterval, getNativeSession, getWebApp, hasAttribute, hasAttribute, invalidate, invalidateNow, isInvalidated, notifyClientRequest, onDestroyed, readThis, recover, removeAttribute, removeAttribute, removeScopeListener, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setDesktopCache, setDeviceType, setMaxInactiveInterval, writeThis
-
Constructor Details
-
SerializableSession
Constructor.- Parameters:
request- the original request causing this session to be created. If HTTP and servlet, it is jakarta.servlet.http.HttpServletRequest. If portlet, it is javax.portlet.RenderRequest.- Since:
- 3.0.1
-
SerializableSession
Constructs a ZK session with either a HTTP session or a Portlet session.- Parameters:
hsess- the original session, either an instance of HttpSession or PortletSession. Notice: we don't declare PortletSession in API to avoid this class failed to be loaded in some system (without portlet-api.jar)request- the original request causing this session to be created. If portlet, it is javax.portlet.RenderRequest.- Since:
- 6.0.3
-
-
Method Details
-
sessionWillPassivate
public void sessionWillPassivate(jakarta.servlet.http.HttpSessionEvent se) - Specified by:
sessionWillPassivatein interfacejakarta.servlet.http.HttpSessionActivationListener
-
sessionDidActivate
public void sessionDidActivate(jakarta.servlet.http.HttpSessionEvent se) - Specified by:
sessionDidActivatein interfacejakarta.servlet.http.HttpSessionActivationListener
-