Package railo.runtime

Examples of railo.runtime.PageContext


  public void serviceRest(HttpServlet servlet, HttpServletRequest req, HttpServletResponse rsp) throws ServletException, IOException {
    req=new HTTPServletRequestWrap(req);
    CFMLFactory factory=getCFMLFactory(servlet.getServletContext(), servlet.getServletConfig(), req);
       
    PageContext pc = factory.getRailoPageContext(servlet,req,rsp,null,false,-1,false);
        ThreadQueue queue = factory.getConfig().getThreadQueue();
        queue.enter(pc);
        try {
          pc.executeRest(pc.getHttpServletRequest().getServletPath(),false);
        }
        catch (PageException pe) {
      throw new PageServletException(pe);
    }
        finally {
View Full Code Here


  public static PageContext get() {//print.dumpStack();
    return pcThreadLocal.get();
  }
 
  public static Config getConfig() {
    PageContext pc = get();
    if(pc!=null) return pc.getConfig();
    return ThreadLocalConfig.get();
   
  }
View Full Code Here

    }
      return DEFAULT_LOCALE;
  }
 
  public static TimeZone getTimeZone(Config config) {
    PageContext pc = get();
    if(pc!=null && pc.getTimeZone()!=null)
      return  pc.getTimeZone();
     
    config=getConfig(config);
    if(config!=null && config.getTimeZone()!=null) {
      return config.getTimeZone();
    }
View Full Code Here

TOP

Related Classes of railo.runtime.PageContext

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.