Package org.zkoss.zk.ui.impl
Class RequestInfoImpl
- java.lang.Object
-
- org.zkoss.zk.ui.impl.RequestInfoImpl
-
- All Implemented Interfaces:
RequestInfo
public class RequestInfoImpl extends java.lang.Object implements RequestInfo
An implementation ofRequestInfo.- Author:
- tomyeh
-
-
Constructor Summary
Constructors Constructor Description RequestInfoImpl(Desktop desktop, java.lang.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, java.lang.Object request, org.zkoss.util.resource.Locator locator)Constructor
-
Method Summary
All Methods Instance Methods Concrete 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 ifRequestInfo.getWebApp()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.
-
-
-
Constructor Detail
-
RequestInfoImpl
public RequestInfoImpl(WebApp wapp, Session sess, Desktop desktop, java.lang.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
public RequestInfoImpl(Desktop desktop, java.lang.Object request, org.zkoss.util.resource.Locator locator)
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
public RequestInfoImpl(Execution exec, org.zkoss.util.resource.Locator locator)
Constructor.- Parameters:
exec- the current execution, never nulllocator- the locator used to locate taglib and other resources. If null,getWebApp()is used.
-
-
Method Detail
-
getWebApp
public final WebApp getWebApp()
Description copied from interface:RequestInfoReturns the Web application; never null.- Specified by:
getWebAppin interfaceRequestInfo
-
getSession
public final Session getSession()
Description copied from interface:RequestInfoReturns the session, or null if not available.- Specified by:
getSessionin interfaceRequestInfo
-
getDesktop
public final Desktop 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
public final java.lang.Object 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.
-
-