Package org.zkoss.web.util.resource

Examples of org.zkoss.web.util.resource.Extendlet


  public static void updateDebugJS(WebApp wapp, boolean debug) {
    final WebManager wm = WebManager.getWebManagerIfAny(wapp);
    if (wm != null) {
      final ClassWebResource cwr = wm.getClassWebResource();
      cwr.setDebugJS(debug);
      final Extendlet ext = cwr.getExtendlet("wpd");
      if (ext instanceof WpdExtendlet)
        ((WpdExtendlet)ext).setDebugJS(debug);
    }
  }
View Full Code Here


  }
  /** Returns whether the page can be directly included.
   */
  private static boolean isDirectInclude(ClassWebResource cwr, String path) {
    final String ext = Servlets.getExtension(path);
    final Extendlet extlet = ext != null ? cwr.getExtendlet(ext): null;
    if (extlet != null) {
      try {
        return extlet.getFeature(Extendlet.ALLOW_DIRECT_INCLUDE);
      } catch (Throwable ex) { //backward compatibility
      }
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of org.zkoss.web.util.resource.Extendlet

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.