Package org.zkoss.zk.ui.sys
Interface RequestInfo
-
- All Known Implementing Classes:
RequestInfoImpl
public interface RequestInfoThe request information used withUiFactory.- Author:
- tomyeh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DesktopgetDesktop()Returns the desktop, or null if not created yet.org.zkoss.util.resource.LocatorgetLocator()Returns the locator used to retrieve resources, such as taglib and zscript files, or null ifgetWebApp()will be used as the locator.java.lang.ObjectgetNativeRequest()Returns the native request.SessiongetSession()Returns the session, or null if not available.WebAppgetWebApp()Returns the Web application; never null.voidsetLocator(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.
-
getDesktop
Desktop getDesktop()
Returns the desktop, or null if not created yet. In other words, it returns null ifUiFactory.newDesktop(org.zkoss.zk.ui.sys.RequestInfo, java.lang.String, java.lang.String)is called.
-
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 ifgetWebApp()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.
-
-