Class RequestInfoImpl

  • All Implemented Interfaces:
    RequestInfo

    public class RequestInfoImpl
    extends java.lang.Object
    implements RequestInfo
    An implementation of RequestInfo.
    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
      Desktop getDesktop()
      Returns the desktop, or null if not created yet.
      org.zkoss.util.resource.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​(org.zkoss.util.resource.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,
                               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 null
        locator - the locator used to locate taglib and other resources. If null, getWebApp() is used.