Examples of filterObject()


Examples of org.archive.wayback.resourceindex.filters.ExclusionFilter.filterObject()

    try {
      // Must set canonicalizer
      urlKey = canonicalizer.urlStringToKey(url);     
      result.setUrlKey(urlKey);
     
      status = filter.filterObject(result);
    } catch (URIException e) {
      //Exclude invalid
    }
   
    if (status == ExclusionFilter.FILTER_INCLUDE) {
View Full Code Here

Examples of org.archive.wayback.resourceindex.filters.ExclusionFilter.filterObject()

      ExclusionFilter f = adminFactory.get();
      if(f == null) {
        LOGGER.severe("Unable to get administrative exclusion filter!");
        throw new AdministrativeAccessControlException(urlString + "is blocked.");
      }
      int ruling = f.filterObject(result);
      if(ruling == ExclusionFilter.FILTER_EXCLUDE) {
        throw new AdministrativeAccessControlException(urlString + "is blocked.");
      }       
    }
    // check robots next, if configured
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.