Package org.zkoss.zk.ui.impl
Class RequestInfoImpl
java.lang.Object
org.zkoss.zk.ui.impl.RequestInfoImpl
- All Implemented Interfaces:
RequestInfo
An implementation of
RequestInfo.- Author:
- tomyeh
-
Constructor Summary
ConstructorsConstructorDescriptionRequestInfoImpl(Desktop desktop, Object request, org.zkoss.util.resource.Locator locator) Constructor.RequestInfoImpl(Execution exec, org.zkoss.util.resource.Locator locator) Constructor.RequestInfoImpl(WebApp wapp, Session sess, Desktop desktop, Object request, org.zkoss.util.resource.Locator locator) Constructor -
Method Summary
Modifier and TypeMethodDescriptionfinal DesktopReturns the desktop, or null if not created yet.final org.zkoss.util.resource.LocatorReturns the locator used to retrieve resources, such as taglib and zscript files, or null ifRequestInfo.getWebApp()will be used as the locator.final ObjectReturns the native request.final SessionReturns the session, or null if not available.final WebAppReturns the Web application; never null.final voidsetLocator(org.zkoss.util.resource.Locator locator) Sets the locator used to retrieve resources, such as taglib and zscript files.
-
Constructor Details
-
RequestInfoImpl
public RequestInfoImpl(WebApp wapp, Session sess, Desktop desktop, Object request, org.zkoss.util.resource.Locator locator) Constructor- Parameters:
wapp- the Web application, never null.sess- the session, or null if not available.desktop- the desktop, or null if not created yet.request- the request, or null if not available.locator- the locator used to locate taglib and other resources. If null, wapp is used.
-
RequestInfoImpl
Constructor.- Parameters:
desktop- the desktop, never null.request- the request, or null if not available.locator- the locator used to locate taglib and other resources. If null, wapp is used.
-
RequestInfoImpl
Constructor.- Parameters:
exec- the current execution, never nulllocator- the locator used to locate taglib and other resources. If null,getWebApp()is used.
-
-
Method Details
-
getWebApp
Description copied from interface:RequestInfoReturns the Web application; never null.- Specified by:
getWebAppin interfaceRequestInfo
-
getSession
Description copied from interface:RequestInfoReturns the session, or null if not available.- Specified by:
getSessionin interfaceRequestInfo
-
getDesktop
Description copied from interface:RequestInfoReturns 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.- Specified by:
getDesktopin interfaceRequestInfo
-
getNativeRequest
Description copied from interface:RequestInfoReturns the native request. For HTTP, it is jakarta.servlet.http.HttpServletRequest.- Specified by:
getNativeRequestin interfaceRequestInfo
-
getLocator
public final org.zkoss.util.resource.Locator getLocator()Description copied from interface:RequestInfoReturns the locator used to retrieve resources, such as taglib and zscript files, or null ifRequestInfo.getWebApp()will be used as the locator.- Specified by:
getLocatorin interfaceRequestInfo
-
setLocator
public final void setLocator(org.zkoss.util.resource.Locator locator) Description copied from interface:RequestInfoSets the locator used to retrieve resources, such as taglib and zscript files.- Specified by:
setLocatorin interfaceRequestInfo- Parameters:
locator- the locator used to locate taglib and other resources. If null,RequestInfo.getWebApp()is used.
-