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, Locator locator)
Constructor.RequestInfoImpl(Execution exec, Locator locator)
Constructor.RequestInfoImpl(WebApp wapp, Session sess, Desktop desktop, java.lang.Object request, Locator locator)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Desktop
getDesktop()
Returns the desktop, or null if not created yet.Locator
getLocator()
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.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(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, 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, 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, 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:RequestInfo
Returns the Web application; never null.- Specified by:
getWebApp
in interfaceRequestInfo
-
getSession
public final Session getSession()
Description copied from interface:RequestInfo
Returns the session, or null if not available.- Specified by:
getSession
in interfaceRequestInfo
-
getDesktop
public final Desktop getDesktop()
Description copied from interface:RequestInfo
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.- Specified by:
getDesktop
in interfaceRequestInfo
-
getNativeRequest
public final java.lang.Object getNativeRequest()
Description copied from interface:RequestInfo
Returns the native request. For HTTP, it is javax.servlet.http.HttpServletRequest.- Specified by:
getNativeRequest
in interfaceRequestInfo
-
getLocator
public final Locator getLocator()
Description copied from interface:RequestInfo
Returns the locator used to retrieve resources, such as taglib and zscript files, or null ifRequestInfo.getWebApp()
will be used as the locator.- Specified by:
getLocator
in interfaceRequestInfo
-
setLocator
public final void setLocator(Locator locator)
Description copied from interface:RequestInfo
Sets the locator used to retrieve resources, such as taglib and zscript files.- Specified by:
setLocator
in interfaceRequestInfo
- Parameters:
locator
- the locator used to locate taglib and other resources. If null,RequestInfo.getWebApp()
is used.
-
-