Package org.archive.wayback.exception

Examples of org.archive.wayback.exception.AdministrativeAccessControlException


    if(isSawRobots() && !isPassedRobots()) {
      throw new RobotAccessControlException("The URL " + requestUrl +
          " is blocked by the sites robots.txt file");
    }
    if(isSawAdministrative() && !isPassedAdministrative()) {
      throw new AdministrativeAccessControlException(requestUrl +
          "  is not available in the Wayback Machine.");
    }
  }
View Full Code Here


    // check admin excludes first, if configured:
    if(adminFactory != null) {
      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
    if(robotFactory != null) {
      int ruling = robotFactory.get().filterObject(result);
View Full Code Here

        if(getExclusionFactory() != null) {
          ExclusionFilter exclusionFilter =
            getExclusionFactory().get();
          if(exclusionFilter == null) {
            throw new AdministrativeAccessControlException(
                "AccessControl list unavailable");
          }
          wbRequest.setExclusionFilter(exclusionFilter);
        }
        // TODO: refactor this into RequestParser implementations, so a
View Full Code Here

      status = adminFilter.filterObject(resultTester);
    }
   
    if (status != ExclusionFilter.FILTER_INCLUDE) {
      if (throwOnFail) {
        throw new RuntimeIOException(403, new AdministrativeAccessControlException(resultTester.getOriginalUrl() + " is not available in the Wayback Machine."));
      } else {
        lastKey = resultTester.getUrlKey();
        return cachedValue;
      }
    }
View Full Code Here

TOP

Related Classes of org.archive.wayback.exception.AdministrativeAccessControlException

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.