Examples of FusionContext


Examples of coldfusion.filter.FusionContext

  {
    setCFC(cfc);
   
    //we will make the assumption that when creating the proxy, we are on a CF Context
   
    FusionContext currentContext = FusionContext.getCurrent();

    FusionContext backupContext = new FusionContext();
   
    backupContext.setSecureCredentials(currentContext.getSecureUsername(), currentContext.getSecurePassword());
    backupContext.setUseMappings(currentContext.getUseMappings());
   
    ServletRequest request = new DummyHttpServletRequest(backupContext.getPagePath());
    ServletResponse response = new DummyHttpServletResponse(System.out);
   
    backupContext.setServletObjects(CFCServlet.getCFCServlet(), request, response);
   
    backupContext.setPagePath(currentContext.getPagePath());
   
    backupContext.setApplicationName(currentContext.getApplicationName());
   
    try
    {
      backupContext.SymTab_initForRequest(true);
    }
    catch (Throwable e)
    {
      e.printStackTrace();
    }
View Full Code Here

Examples of coldfusion.filter.FusionContext

   * @throws Throwable
   * @throws CloneNotSupportedException
   */
  private PageContext getCurrentFusionContext() throws Throwable
  {
    FusionContext currentContext = FusionContext.getCurrent();
   
    if(currentContext == null)
    {
      try
      {
        currentContext = (FusionContext)getBackupFusionContext().clone();
        currentContext.SymTab_initForRequest(true);
       
        FusionContext.setCurrent(currentContext);
      }
      catch (CloneNotSupportedException e)
      {
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.