Class SimpleSessionCache

java.lang.Object
org.zkoss.zk.ui.http.SimpleSessionCache
All Implemented Interfaces:
SessionCache

public class SimpleSessionCache extends Object implements SessionCache
A simple implementation of SessionCache.
Since:
3.0.5
Author:
tomyeh
  • Constructor Details

    • SimpleSessionCache

      public SimpleSessionCache()
  • Method Details

    • init

      public void init(WebApp wapp)
      Description copied from interface: SessionCache
      Initializes the session cache. It is called right after being instantiated.
      Specified by:
      init in interface SessionCache
    • destroy

      public void destroy(WebApp wapp)
      Description copied from interface: SessionCache
      Destroys the session cache
      Specified by:
      destroy in interface SessionCache
    • put

      public void put(Session sess)
      Description copied from interface: SessionCache
      Puts a ZK session to the cache. You can retrieve the native session by Session.getNativeSession().
      Specified by:
      put in interface SessionCache
      Parameters:
      sess - the ZK session.
    • get

      public Session get(Object navsess)
      Description copied from interface: SessionCache
      Retrieves a ZK session from the cache, or null if the ZK session is not stored.
      Specified by:
      get in interface SessionCache
    • remove

      public void remove(Session sess)
      Description copied from interface: SessionCache
      Removes the ZK session from the cache.
      Specified by:
      remove in interface SessionCache