org.zkoss.zk.ui.impl
Class RequestInfoImpl

java.lang.Object
  extended by org.zkoss.zk.ui.impl.RequestInfoImpl
All Implemented Interfaces:
RequestInfo

public class RequestInfoImpl
extends java.lang.Object
implements RequestInfo

An implementation of RequestInfo.

Author:
tomyeh

Constructor Summary
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
 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 if RequestInfo.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 null
locator - 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 interface RequestInfo

getSession

public final Session getSession()
Description copied from interface: RequestInfo
Returns the session, or null if not available.

Specified by:
getSession in interface RequestInfo

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 if UiFactory.newDesktop(org.zkoss.zk.ui.sys.RequestInfo, java.lang.String, java.lang.String) is called.

Specified by:
getDesktop in interface RequestInfo

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 interface RequestInfo

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 if RequestInfo.getWebApp() will be used as the locator.

Specified by:
getLocator in interface RequestInfo

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 interface RequestInfo
Parameters:
locator - the locator used to locate taglib and other resources. If null, RequestInfo.getWebApp() is used.


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo