Package railo.runtime.util

Examples of railo.runtime.util.Creation


    private static final int BOOLEAN_SIZE = 1;
    private static final int CHAR_SIZE = 2;
    private static final int REF_SIZE = WORD_SIZE;
 
  public static Size sizeOf(Object obj) throws PageException {
    Creation creator = CFMLEngineFactory.getInstance().getCreationUtil();
    Size size = new Size(0,0);
    sizeOf(creator,size, obj, new HashSet<Object>());
    return size;
  }
View Full Code Here


      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);
    }
View Full Code Here

TOP

Related Classes of railo.runtime.util.Creation

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.