Examples of CFMLEngine


Examples of railo.loader.engine.CFMLEngine

    public static boolean inInvoke() {
        return false;
    }

    private Object _invoke(String methodName, Object[] args) throws PageException {
      CFMLEngine engine = CFMLEngineFactory.getInstance();
    PageContext pc = engine.getThreadPageContext();
    initCFC(pc);
      return cfc.call(pc, methodName, args);
  }
View Full Code Here

Examples of railo.loader.engine.CFMLEngine

    initCFC(pc);
      return cfc.call(pc, methodName, args);
  }
   
    private Object _invoke(String methodName, Object[] args, HttpServletRequest req, HttpServletResponse rsp, OutputStream out) throws PageException {
      CFMLEngine engine = CFMLEngineFactory.getInstance();
    Creation creator = engine.getCreationUtil();
    PageContext originalPC = engine.getThreadPageContext();
   
    // no OutputStream
    if(out==null)out=DevNullOutputStream.DEV_NULL_OUTPUT_STREAM;
   
    // no Request
    if(req==null){
      // TODO new File
      req=creator.createHttpServletRequest(new File("."), "Railo", "/", "", null, null, null, null, null);
    }
    // noRespone
    if(rsp==null){
      rsp=creator.createHttpServletResponse(out);
    }
   
   
    PageContext pc = creator.createPageContext(req,rsp,out);
    try{
      engine.registerThreadPageContext(pc);
      initCFC(pc);
        return cfc.call(pc, methodName, args);
    }
    finally{
      if(autoFlush) {
        try {
          pc.getRootWriter().flush();
        } catch (Throwable t) {}
      }
      engine.registerThreadPageContext(originalPC);
    }
  }
View Full Code Here

Examples of railo.loader.engine.CFMLEngine

      engine.registerThreadPageContext(originalPC);
    }
  }

    public void flush() throws IOException {
      CFMLEngine engine = CFMLEngineFactory.getInstance();
    PageContext pc = engine.getThreadPageContext();
    pc.getRootWriter().flush();
    }
View Full Code Here

Examples of railo.loader.engine.CFMLEngine

  }



  public void init(String cacheName, Struct arguments) {
    CFMLEngine engine = CFMLEngineFactory.getInstance();
    init(engine.getThreadPageContext().getConfig(),cacheName, arguments);
   
  }
View Full Code Here

Examples of railo.loader.engine.CFMLEngine

    return allowRequestTimeout;
  }
 
  public boolean isRunning() {
    try{
      CFMLEngine other = CFMLEngineFactory.getInstance();
      // FUTURE patch, do better impl when changing loader
      if(other!=this && controlerState.toBooleanValue() &&  !(other instanceof CFMLEngineWrapper)) {
        SystemOut.printDate("CFMLEngine is still set to true but no longer valid, Railo disable this CFMLEngine.");
        controlerState.setValue(false);
        reset();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.