Interface RequestInfo

  • All Known Implementing Classes:
    RequestInfoImpl

    public interface RequestInfo
    The request information used with UiFactory.
    Author:
    tomyeh
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Desktop getDesktop()
      Returns the desktop, or null if not created yet.
      org.zkoss.util.resource.Locator getLocator()
      Returns the locator used to retrieve resources, such as taglib and zscript files, or null if getWebApp() will be used as the locator.
      java.lang.Object getNativeRequest()
      Returns the native request.
      Session getSession()
      Returns the session, or null if not available.
      WebApp getWebApp()
      Returns the Web application; never null.
      void setLocator​(org.zkoss.util.resource.Locator locator)
      Sets the locator used to retrieve resources, such as taglib and zscript files.
    • Method Detail

      • getWebApp

        WebApp getWebApp()
        Returns the Web application; never null.
      • getSession

        Session getSession()
        Returns the session, or null if not available.
      • getNativeRequest

        java.lang.Object getNativeRequest()
        Returns the native request. For HTTP, it is jakarta.servlet.http.HttpServletRequest.
      • getLocator

        org.zkoss.util.resource.Locator getLocator()
        Returns the locator used to retrieve resources, such as taglib and zscript files, or null if getWebApp() will be used as the locator.
      • setLocator

        void setLocator​(org.zkoss.util.resource.Locator locator)
        Sets the locator used to retrieve resources, such as taglib and zscript files.
        Parameters:
        locator - the locator used to locate taglib and other resources. If null, getWebApp() is used.