Package railo.commons.io.res.filter

Examples of railo.commons.io.res.filter.AndResourceFilter


    securityManager.checkFileLocation(pageContext.getConfig(),directory,serverPassword);
     
      if(type!=TYPE_ALL) {
        ResourceFilter typeFilter = (type==TYPE_DIR)?DIRECTORY_FILTER:FILE_FILTER;
        if(filter==null) filter=typeFilter;
        else filter=new AndResourceFilter(new ResourceFilter[]{typeFilter,filter});
      }
     
     
    // create query Object
      String[] names = new String[]{"name","size","type","dateLastModified","attributes","mode","directory"};
View Full Code Here


    long timeout=type==Scope.SCOPE_CLIENT?cwi.getClientTimeout().getMillis():cwi.getSessionTimeout().getMillis();
    long time = new DateTimeImpl(cwi).getTime()-timeout;
   
    try {
      // delete files that has expired
      AndResourceFilter andFilter = new AndResourceFilter(new ResourceFilter[]{EXT_FILTER,new ExpiresFilter(time,true)});
      String appName,cfid2,cfid;
      Resource[] apps = dir.listResources(DIR_FILTER),cfidDir,files;
     
      if(apps!=null)for(int a=0;a<apps.length;a++){
        appName=StorageScopeFile.decode(apps[a].getName());
View Full Code Here

TOP

Related Classes of railo.commons.io.res.filter.AndResourceFilter

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.