Package railo.runtime.config

Examples of railo.runtime.config.Config


      Cache cc = getCache(pc.getConfig(), name, null);
      if(cc!=null) return cc;
    }
   
    // get default from config
    Config config = ThreadLocalPageContext.getConfig(pc);
    CacheConnection cc= ((ConfigImpl)config).getCacheDefaultConnection(type);
    if(cc==null) throw new CacheException("there is no default "+toStringType(type,"")+" cache defined, you need to define this default cache in the Railo Administrator");
    return cc.getInstance(config);
   
   
View Full Code Here


    //root=ramProvider.getResource("/");
   
    if(temp==null){
      String cid="";
      try {
        Config config = ThreadLocalPageContext.getConfig();
        if(config!=null){
          cid=config.getId();
          temp = config.getTempDirectory();
        }
        if(temp==null)temp=SystemUtil.getTempDirectory();

        temp=temp.getRealResource("compress");
        temp=temp.getRealResource(MD5.getDigestAsString(cid+"-"+ffile.getAbsolutePath()));
View Full Code Here

    return true;
  }
 
  private DatasourceManagerImpl getManager() {
    if(_manager==null){
      Config config = ThreadLocalPageContext.getConfig();
      _manager=new DatasourceManagerImpl((ConfigImpl) config);
    }
    return _manager;
  }
View Full Code Here

        //print.ln("read ok");
        return;
      }
      if(t==Thread.currentThread()) {
        //aprint.err(path);
        Config config = ThreadLocalPageContext.getConfig();
        if(config!=null)
          SystemOut.printDate(config.getErrWriter(),"conflict in same thread: on "+path);
        //throw new RuntimeException("conflict in same thread: on "+res);
        return;
      }
      // bugfix when lock von totem thread, wird es ignoriert
      if(!t.isAlive()) {
        resources.remove(path);
        return;
      }
      if(start==-1)start=System.currentTimeMillis();
      try {
        token.wait(lockTimeout);
        now=System.currentTimeMillis();
        if((start+lockTimeout)<=now) {
          Config config = ThreadLocalPageContext.getConfig();
          if(config!=null)
            SystemOut.printDate(config.getErrWriter(),"timeout after "+(now-start)+" ms ("+(lockTimeout)+" ms) occured while accessing file ["+path+"]");
          else
            SystemOut.printDate("timeout ("+(lockTimeout)+" ms) occured while accessing file ["+path+"]");
          return;
        }
      }
View Full Code Here

    if(!StringUtil.isEmpty(ce,true)) return ce;
    return _getCharacterEncoding(pc);
  }
 
  private static String _getCharacterEncoding(PageContext pc) {
    Config config = ThreadLocalPageContext.getConfig(pc); // TODO 4.2
    return config.getWebCharset();
  }
View Full Code Here

   
 

  @Override
  public void initialize(PageContext pc) {
    Config config = ThreadLocalPageContext.getConfig(pc);
    charset = pc.getConfig().getWebCharset();
    if(scriptProtected==ScriptProtected.UNDEFINED) {
      scriptProtected=((pc.getApplicationContext().getScriptProtect()&ApplicationContext.SCRIPT_PROTECT_COOKIE)>0)?
          ScriptProtected.YES:ScriptProtected.NO;
    }
View Full Code Here

      if(pc.getTimeZone()!=null)return  pc.getTimeZone();
      return DEFAULT_TIMEZONE;
    }
   
    // config
    Config config = getConfig((Config)null);
    if(config!=null && config.getTimeZone()!=null) {
      return config.getTimeZone();
    }
      return DEFAULT_TIMEZONE;
  }
View Full Code Here

      if(pc.getLocale()!=null)return  pc.getLocale();
      return DEFAULT_LOCALE;
    }
   
    // config
    Config config = getConfig((Config)null);
    if(config!=null && config.getLocale()!=null) {
      return config.getLocale();
    }
      return DEFAULT_LOCALE;
  }
View Full Code Here

TOP

Related Classes of railo.runtime.config.Config

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.