Package org.zkoss.zk.ui.util

Examples of org.zkoss.zk.ui.util.DesktopRecycle


      } catch (Throwable ex) {
        log.error(ex);
      }
    }

    final DesktopRecycle dtrc = config.getDesktopRecycle();
    if (dtrc != null) {
      try {
        dtrc.afterRemove(sess, desktop);
      } catch (Throwable ex) {
        log.error(ex);
      }
    }
  }
View Full Code Here


    final Configuration config = wapp.getConfiguration();

    final boolean bInclude = Servlets.isIncluded(request);
    final boolean compress = _compress && !bInclude;
    final Writer out = compress ? (Writer)new StringWriter(): response.getWriter();
    final DesktopRecycle dtrc = bInclude ? null: config.getDesktopRecycle();
    Desktop desktop = dtrc != null ?
      Utils.beforeService(dtrc, _ctx, sess, request, response, path): null;

    try {
      if (desktop != null) { //recycle
View Full Code Here

    ((ExecutionCtrl)exec).getVisualizer().disable();

    //Bug 1868371: we shall postpone the cleanup to the last step
    final Desktop dt = exec.getDesktop();
    final WebApp wapp = dt.getWebApp();
    final DesktopRecycle dtrc = wapp.getConfiguration().getDesktopRecycle();
    if (dtrc == null || !beforeRemove(dtrc, exec, dt))
      ((WebAppCtrl)wapp).getDesktopCache(dt.getSession()).removeDesktop(dt);
  }
View Full Code Here

    final HttpServletRequest httpreq = RenderHttpServletRequest.getInstance(request);
    final HttpServletResponse httpres = RenderHttpServletResponse.getInstance(response);
    final ServletContext svlctx = (ServletContext)wapp.getNativeContext();

    final DesktopRecycle dtrc = wapp.getConfiguration().getDesktopRecycle();
    Desktop desktop = dtrc != null ? Utils.beforeService(dtrc, svlctx, sess, httpreq, httpres, path): null;

    try {
      if (desktop != null) { //recycle
        final Page page = Utils.getMainPage(desktop);
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.util.DesktopRecycle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.