Package org.zkoss.zk.ui.http
Class SimpleSessionCache
- java.lang.Object
-
- org.zkoss.zk.ui.http.SimpleSessionCache
-
- All Implemented Interfaces:
SessionCache
public class SimpleSessionCache extends java.lang.Object implements SessionCache
A simple implementation ofSessionCache.- Since:
- 3.0.5
- Author:
- tomyeh
-
-
Constructor Summary
Constructors Constructor Description SimpleSessionCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy(WebApp wapp)Destroys the session cacheSessionget(java.lang.Object navsess)Retrieves a ZK session from the cache, or null if the ZK session is not stored.voidinit(WebApp wapp)Initializes the session cache.voidput(Session sess)Puts a ZK session to the cache.voidremove(Session sess)Removes the ZK session from the cache.
-
-
-
Method Detail
-
init
public void init(WebApp wapp)
Description copied from interface:SessionCacheInitializes the session cache. It is called right after being instantiated.- Specified by:
initin interfaceSessionCache
-
destroy
public void destroy(WebApp wapp)
Description copied from interface:SessionCacheDestroys the session cache- Specified by:
destroyin interfaceSessionCache
-
put
public void put(Session sess)
Description copied from interface:SessionCachePuts a ZK session to the cache. You can retrieve the native session bySession.getNativeSession().- Specified by:
putin interfaceSessionCache- Parameters:
sess- the ZK session.
-
get
public Session get(java.lang.Object navsess)
Description copied from interface:SessionCacheRetrieves a ZK session from the cache, or null if the ZK session is not stored.- Specified by:
getin interfaceSessionCache
-
remove
public void remove(Session sess)
Description copied from interface:SessionCacheRemoves the ZK session from the cache.- Specified by:
removein interfaceSessionCache
-
-