Package com.caucho.quercus.page

Examples of com.caucho.quercus.page.QuercusPage


      Path prependPath = lookup(prepend);

      if (prependPath == null)
        error(L.l("auto_prepend_file '{0}' not found.", prepend));
      else {
        QuercusPage prependPage = _quercus.parse(prependPath);
        prependPage.executeTop(this);
      }
    }

    executeTop();

    StringValue append
      = _quercus.getIniValue("auto_append_file").toStringValue(this);

    if (append.length() > 0) {
      Path appendPath = lookup(append);

      if (appendPath == null)
        error(L.l("auto_append_file '{0}' not found.", append));
      else {
        QuercusPage appendPage = getQuercus().parse(appendPath);
        appendPage.executeTop(this);
      }
    }
  }
View Full Code Here


        error(msg);

        return BooleanValue.FALSE;
      }

      QuercusPage page = _includeMap.get(path);

      if (page != null && isOnce)
        return BooleanValue.TRUE;
      else if (page == null || page.isModified()) {
        page = _quercus.parse(path);

        pageInit(page);

        _includeMap.put(path, page);
View Full Code Here

    if (log.isLoggable(Level.FINEST)) {
      log.finest(this + " execute " + path);
    }
    try {
      QuercusPage page = _quercus.parse(path);

      pageInit(page);

      executePage(page);
    } catch (IOException e) {
View Full Code Here

  {
    Env env = null;
    boolean started = false;

    try {
      QuercusPage page = _quercus.parse(_script);
      env = createEnv(page, "_quercus_bam_start_service", jid);
      page.executeTop(env);

      started = env.getGlobalValue("_quercus_bam_function_return").toBoolean();
    }
    finally {
      if (env != null)
View Full Code Here

  {
    Env env = null;
    boolean stoped = false;

    try {
      QuercusPage page = _quercus.parse(_script);
      env = createEnv(page, "_quercus_bam_stop_service", jid);
      page.executeTop(env);

      stoped = env.getGlobalValue("_quercus_bam_function_return").toBoolean();
    }
    finally {
      if (env != null)
View Full Code Here

    if (! (o instanceof DefinitionKey))
      return false;

    DefinitionKey key = (DefinitionKey) o;

    QuercusPage page = _includePageRef.get();
    QuercusPage keyPage = key._includePageRef.get();

    if (page == null || keyPage == null)
      return false;
   
    return (_crc == key._crc && page.equals(keyPage));
View Full Code Here

    return (_crc == key._crc && page.equals(keyPage));
  }

  public String toString()
  {
    QuercusPage page = _includePageRef.get();
   
    return "DefinitionKey[" + _crc + ", " + page + "]";
  }
View Full Code Here

        out = os;
      }
      else
        out = new NullWriteStream();

      QuercusPage page = new InterpretedPage(program);

      env = new Env(_quercus, page, out, null, null);

      env.setScriptContext(cxt);
View Full Code Here

        out = os;
      }
      else
        out = new NullWriteStream();

      QuercusPage page = new InterpretedPage(_program);

      env = new Env(_engine.getQuercus(), page, out, null, null);

      env.setScriptContext(cxt);
View Full Code Here

    if (! (o instanceof DefinitionKey))
      return false;

    DefinitionKey key = (DefinitionKey) o;

    QuercusPage page = _includePageRef.get();
    QuercusPage keyPage = key._includePageRef.get();

    if (page == null || keyPage == null)
      return false;
   
    return (_crc == key._crc && page.equals(keyPage));
View Full Code Here

TOP

Related Classes of com.caucho.quercus.page.QuercusPage

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.