Package org.zkoss.util.resource

Examples of org.zkoss.util.resource.Locator


    if (param != null)
      _compress = "true".equals(param);

    param = config.getInitParameter("class-resource");
    final boolean bClsRes = "true".equals(param);
    _locator = new Locator() {
      public String getDirectory() {
        return null; //FUTURE: support relative path
      }
      public URL getResource(String name) {
        URL url = null;
View Full Code Here


    return desktop;
  }
  /** Creates an desktop. */
  private Desktop newDesktop(Session sess, ServletRequest request,
  ServletResponse response, String path) {
    final Locator loc = PageDefinitions.getLocator(_wapp, path);
      //we have to retrieve locator before setting execution,
      //since it assumes exec.getDesktop not null
      //which is true except this moment (before desktop is created)

    final Execution exec = ExecutionsCtrl.getCurrent();
View Full Code Here

    }

    //-- super --//
    protected Object parse(String path, File file, Object extra)
    throws Exception {
      final Locator locator =
        extra != null ? (Locator)extra: getLocator(_wapp, path);
      return new Parser(_wapp, locator).parse(file, path);
    }
View Full Code Here

        extra != null ? (Locator)extra: getLocator(_wapp, path);
      return new Parser(_wapp, locator).parse(file, path);
    }
    protected Object parse(String path, URL url, Object extra)
    throws Exception {
      final Locator locator =
        extra != null ? (Locator)extra: getLocator(_wapp, path);
      return new Parser(_wapp, locator).parse(url, path);
    }
View Full Code Here

TOP

Related Classes of org.zkoss.util.resource.Locator

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.