|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionCache
The cache for storing ZK sessions. The default implementation (@{link org.zkoss.zk.ui.http.SimpleSessionCache}) uses an attribute of the native session to store the ZK session. Provide your implementation if you want to use other ways to store the ZK sessions (such as using a map).
Configuration.setSessionCacheClass(java.lang.Class>)
Method Summary | |
---|---|
void |
destroy(WebApp wapp)
Destroys the session cache |
Session |
get(java.lang.Object navsess)
Retrieves a ZK session from the cache, or null if the ZK session is not stored. |
void |
init(WebApp wapp)
Initializes the session cache. |
void |
put(Session sess)
Puts a ZK session to the cache. |
void |
remove(Session sess)
Removes the ZK session from the cache. |
Method Detail |
---|
void init(WebApp wapp)
void destroy(WebApp wapp)
void put(Session sess)
Session.getNativeSession()
.
sess
- the ZK session.Session get(java.lang.Object navsess)
void remove(Session sess)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |