Uses of Interface
org.zkoss.zk.ui.Session
-
-
Uses of Session in org.zkoss.stateless.ui.http
Methods in org.zkoss.stateless.ui.http with parameters of type Session Modifier and Type Method Description protected Desktop
DispatcherRichletFilter. getDesktop(Session sess, java.lang.String dtid)
protected boolean
DispatcherRichletFilter. process(Session sess, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path, boolean bRichlet)
protected boolean
DispatcherRichletFilter. processUpdate(Session sess, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path, boolean bRichlet)
-
Uses of Session in org.zkoss.zk.au.http
Methods in org.zkoss.zk.au.http that return Session Modifier and Type Method Description Session
AuExtensionRequest. getSession(boolean create)
Returns the session, or null if no session andcreate
is false.Methods in org.zkoss.zk.au.http with parameters of type Session Modifier and Type Method Description java.lang.Object
AuDynaMediar. charsetSetup(Session session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
default java.lang.Object
AuExtension. charsetSetup(Session session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Sets the charset of the response.protected Desktop
DHtmlUpdateServlet. getDesktop(Session sess, java.lang.String dtid)
Returns the desktop of the specified ID, or null if not found.void
DHtmlUpdateServlet. process(Session sess, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean compress)
Process asynchronous update requests from the client.protected Desktop
DHtmlUpdateServlet. recoverDesktop(Session sess, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, WebAppCtrl wappc, java.lang.String dtid)
Recovers the desktop if possible. -
Uses of Session in org.zkoss.zk.ui
Methods in org.zkoss.zk.ui that return Session Modifier and Type Method Description static Session
Sessions. getCurrent()
Returns the session for the current thread, or null if not available.static Session
Sessions. getCurrent(boolean create)
Returns the session for the current thread, or null if not available.Session
Desktop. getSession()
Returns the session of this desktop.Session
Execution. getSession()
Returns the session this execution belongs to. -
Uses of Session in org.zkoss.zk.ui.event
Methods in org.zkoss.zk.ui.event with parameters of type Session Modifier and Type Method Description static <T extends Event>
EventQueue<T>EventQueues. lookup(java.lang.String name, Session sess, boolean autoCreate)
Returns the event queue with the specified name in the give session (i.e., the session scope).static boolean
EventQueues. remove(java.lang.String name, Session sess)
Removes the event queue of the specified session. -
Uses of Session in org.zkoss.zk.ui.event.impl
Methods in org.zkoss.zk.ui.event.impl with parameters of type Session Modifier and Type Method Description <T extends Event>
EventQueue<T>EventQueueProvider. lookup(java.lang.String name, Session sess, boolean autoCreate)
Returns the event queue with the specified name in the give session (i.e., the scope).<T extends Event>
EventQueue<T>EventQueueProviderImpl. lookup(java.lang.String name, Session sess, boolean autoCreate)
boolean
EventQueueProvider. remove(java.lang.String name, Session sess)
Removes the event queue of the specified session.boolean
EventQueueProviderImpl. remove(java.lang.String name, Session sess)
-
Uses of Session in org.zkoss.zk.ui.http
Classes in org.zkoss.zk.ui.http that implement Session Modifier and Type Class Description class
SerializableSession
SerializableSession
.class
SimpleSession
A non-serializable implementation ofSession
.Methods in org.zkoss.zk.ui.http that return Session Modifier and Type Method Description Session
SimpleSessionCache. get(java.lang.Object navsess)
Session
SessionResolverImpl. getSession(boolean create)
static Session
WebManager. getSession(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request)
Returns the session associated with the specified request request.static Session
WebManager. getSession(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, boolean create)
Returns the current HttpSession associated with this request or, if there is no current session and create is true, returns a new session.Session
SerializableUiFactory. newSession(WebApp wapp, java.lang.Object nativeSess, java.lang.Object request)
Session
SimpleUiFactory. newSession(WebApp wapp, java.lang.Object nativeSess, java.lang.Object request)
Methods in org.zkoss.zk.ui.http with parameters of type Session Modifier and Type Method Description static Desktop
DesktopRecycles. beforeService(DesktopRecycle dtrc, javax.servlet.ServletContext ctx, Session sess, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path)
Called before serving a HTTP request.Desktop
WebManager. getDesktop(Session sess, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.String path, boolean autocreate)
Returns the desktop of the specified request, or null if not found and autocreate is false, or it has been redirect or forward to other page.static int
Utils. getFirstDayOfWeek(Session sess)
Returns the first day of the week of the given session, or -1 if no defined by the application.protected boolean
DHtmlLayoutPortlet. process(Session sess, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.String path, boolean bRichlet)
Process a portlet request.protected boolean
DHtmlLayoutServlet. process(Session sess, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String originPath, boolean bRichlet)
Process the request.protected boolean
RichletFilter. process(Session sess, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String originPath, boolean bRichlet)
void
SimpleSessionCache. put(Session sess)
void
SimpleSessionCache. remove(Session sess)
static java.lang.Object
I18Ns. setup(Session sess, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.String charset)
Sets up the internationalization attributes, including locale and time zone. -
Uses of Session in org.zkoss.zk.ui.impl
Methods in org.zkoss.zk.ui.impl that return Session Modifier and Type Method Description Session
AbstractExecution. getSession()
Session
DesktopImpl. getSession()
Session
RequestInfoImpl. getSession()
Methods in org.zkoss.zk.ui.impl with parameters of type Session Modifier and Type Method Description DesktopCache
AbstractWebApp. getDesktopCache(Session sess)
DesktopCache
GlobalDesktopCacheProvider. getDesktopCache(Session sess)
DesktopCache
SessionDesktopCacheProvider. getDesktopCache(Session sess)
void
AbstractWebApp. sessionDestroyed(Session sess)
void
GlobalDesktopCacheProvider. sessionDestroyed(Session sess)
void
SessionDesktopCacheProvider. sessionDestroyed(Session sess)
void
AbstractWebApp. sessionDidActivate(Session sess)
void
DesktopImpl. sessionDidActivate(Session sess)
void
GlobalDesktopCacheProvider. sessionDidActivate(Session sess)
void
SessionDesktopCacheProvider. sessionDidActivate(Session sess)
void
SimpleDesktopCache. sessionDidActivate(Session sess)
InvokesDesktopCtrl.sessionDidActivate(org.zkoss.zk.ui.Session)
for each desktops it cached.void
AbstractWebApp. sessionWillPassivate(Session sess)
void
DesktopImpl. sessionWillPassivate(Session sess)
void
GlobalDesktopCacheProvider. sessionWillPassivate(Session sess)
void
SessionDesktopCacheProvider. sessionWillPassivate(Session sess)
void
SimpleDesktopCache. sessionWillPassivate(Session sess)
InvokesDesktopCtrl.sessionWillPassivate(org.zkoss.zk.ui.Session)
for each desktops it cached.Constructors in org.zkoss.zk.ui.impl with parameters of type Session Constructor Description RequestInfoImpl(WebApp wapp, Session sess, Desktop desktop, java.lang.Object request, Locator locator)
Constructor -
Uses of Session in org.zkoss.zk.ui.sys
Methods in org.zkoss.zk.ui.sys that return Session Modifier and Type Method Description Session
SessionCache. get(java.lang.Object navsess)
Retrieves a ZK session from the cache, or null if the ZK session is not stored.Session
RequestInfo. getSession()
Returns the session, or null if not available.Session
SessionResolver. getSession(boolean create)
Returns the session, or null if no session available andcreate
is false.static Session
SessionsCtrl. getSession(WebApp wapp, java.lang.Object navsess)
Returns the ZK session associated with the specified native session, or null if not found.static Session
SessionsCtrl. newSession(WebApp wapp, java.lang.Object navsess, java.lang.Object request)
Instantiates a ZK session that is associated with the specified native session and request.Session
UiFactory. newSession(WebApp wapp, java.lang.Object nativeSess, java.lang.Object request)
Creates an instance ofSession
.Methods in org.zkoss.zk.ui.sys with parameters of type Session Modifier and Type Method Description DesktopCache
DesktopCacheProvider. getDesktopCache(Session session)
Returns a desktop cache of the specified session.DesktopCache
WebAppCtrl. getDesktopCache(Session sess)
Returns the desktop cache.boolean
FailoverManager. isRecoverable(Session sess, java.lang.String desktopId)
Tests whether the specified desktop ID is recoverable.void
SessionCache. put(Session sess)
Puts a ZK session to the cache.void
FailoverManager. recover(Session sess, Execution exec, Desktop desktop)
Recovers the specified desktop.void
SessionCache. remove(Session sess)
Removes the ZK session from the cache.static boolean
SessionsCtrl. requestEnter(Session sess)
Called when a servlet/portlet starts to serve a request.static void
SessionsCtrl. requestExit(Session sess)
Called when a servlet/portlet completes the service of a request.void
DesktopCacheProvider. sessionDestroyed(Session session)
Called when a session is destroyed.void
WebAppCtrl. sessionDestroyed(Session sess)
Called when the native session of the specified session has been destroyedvoid
DesktopCache. sessionDidActivate(Session sess)
Notification that the session has just been activated (a.k.a., deserialized).void
DesktopCacheProvider. sessionDidActivate(Session sess)
Notification that the session has just been activated (a.k.a., deserialized).void
DesktopCtrl. sessionDidActivate(Session sess)
Notification that the session, which owns this desktop, has just been activated (a.k.a., deserialized) by the Web container.void
WebAppCtrl. sessionDidActivate(Session sess)
Notification that the session has just been activated (a.k.a., deserialized).void
DesktopCache. sessionWillPassivate(Session sess)
Notification that the session is about to be passivated (a.k.a., serialized).void
DesktopCacheProvider. sessionWillPassivate(Session sess)
Notification that the session is about to be passivated (a.k.a., serialized).void
DesktopCtrl. sessionWillPassivate(Session sess)
Notification that the session, which owns this desktop, is about to be passivated (a.k.a., serialized) by the Web container.void
WebAppCtrl. sessionWillPassivate(Session sess)
Notification that the session is about to be passivated (a.k.a., serialized).static void
SessionsCtrl. setCurrent(Session sess)
Sets the session for the current thread. -
Uses of Session in org.zkoss.zk.ui.util
Fields in org.zkoss.zk.ui.util declared as Session Modifier and Type Field Description protected Session
GenericAutowireComposer. session
Implicit Object; the session.Methods in org.zkoss.zk.ui.util with parameters of type Session Modifier and Type Method Description void
DesktopRecycle. afterRemove(Session sess, Desktop desktop)
Called after a desktop is removed.void
SessionCleanup. cleanup(Session sess)
called when a session is about to be destroyed.void
SessionActivationListener. didActivate(Session session)
Called when a session has just been activated.void
SessionInit. init(Session sess, java.lang.Object request)
Called when a session is created and initialized.void
Configuration. invokeRequestInterceptors(Session sess, java.lang.Object request, java.lang.Object response)
InvokesRequestInterceptor.request(org.zkoss.zk.ui.Session, java.lang.Object, java.lang.Object)
for each relevant listener registered byConfiguration.addListener(java.lang.Class<?>)
.void
Configuration. invokeSessionCleanups(Session sess)
InvokesSessionCleanup.cleanup(org.zkoss.zk.ui.Session)
for each relevant listener registered byConfiguration.addListener(java.lang.Class<?>)
.void
Configuration. invokeSessionInits(Session sess, java.lang.Object request)
InvokesSessionInit.init(org.zkoss.zk.ui.Session, java.lang.Object)
for each relevant listener registered byConfiguration.addListener(java.lang.Class<?>)
.void
RequestInterceptor. request(Session sess, java.lang.Object request, java.lang.Object response)
Called before a request is processed by ZK Loader or ZK Update Engine.void
Monitor. sessionCreated(Session sess)
Called when a new session is created.void
Statistic. sessionCreated(Session sess)
void
Monitor. sessionDestroyed(Session sess)
Called when a session is being destroyed.void
Statistic. sessionDestroyed(Session sess)
void
SessionActivationListener. willPassivate(Session session)
Called when a session is about to be passivated.void
SessionSerializationListener. willSerialize(Session session)
Called when a session is going to serialize this object. -
Uses of Session in org.zkoss.zkmax.ui.util
Methods in org.zkoss.zkmax.ui.util with parameters of type Session Modifier and Type Method Description void
DesktopRecycle. afterRemove(Session sess, Desktop desktop)
protected java.util.Map
DesktopRecycle. newCache(Session sess)
Instantiates the cache to hold the recycled desktop for the given session.
-