Class SerializableUiFactory

java.lang.Object
org.zkoss.zk.ui.impl.AbstractUiFactory
org.zkoss.zk.ui.http.SerializableUiFactory
All Implemented Interfaces:
UiFactory

public class SerializableUiFactory extends AbstractUiFactory
The serializable implementation of UiFactory. The instances returned by newSession(org.zkoss.zk.ui.WebApp, java.lang.Object, java.lang.Object) is serializable, such that session can be stored when the Web server stops and restore after it starts.
Author:
tomyeh
  • Constructor Details

    • SerializableUiFactory

      public SerializableUiFactory()
  • Method Details

    • newSession

      public Session newSession(WebApp wapp, Object nativeSess, Object request)
      Description copied from interface: UiFactory
      Creates an instance of Session.
      Parameters:
      wapp - the web application
      nativeSess - the native session depending on the Web server. If HTTP is used, it is jakarta.servlet.http.HttpSession.
      request - the original request. If HTTP, it is jakarta.servlet.http.HttlServletRequest.