Class SessionResolverImpl

java.lang.Object
org.zkoss.zk.ui.http.SessionResolverImpl
All Implemented Interfaces:
SessionResolver

public class SessionResolverImpl extends Object implements SessionResolver
An implementation of session resolver (SessionResolver) based on HTTP request.
Since:
5.0.0
Author:
tomyeh
  • Constructor Details

    • SessionResolverImpl

      public SessionResolverImpl(jakarta.servlet.ServletContext ctx, jakarta.servlet.http.HttpServletRequest request)
  • Method Details

    • getSession

      public Session getSession(boolean create)
      Description copied from interface: SessionResolver
      Returns the session, or null if no session available and create is false.
      Specified by:
      getSession in interface SessionResolver
      Parameters:
      create - whether to create the session if not found. If true, a new session will be create if there is no one available.