Package org.archive.wayback.surt

Examples of org.archive.wayback.surt.SURTTokenizer


    exclusionMap = map;
  }
 
  protected boolean isExcluded(String url) {
    try {
      SURTTokenizer st = new SURTTokenizer(url);
      while(true) {
        String nextSearch = st.nextSearch();
        if(nextSearch == null) {
          break;
        }
        LOGGER.fine("EXCLUSION-MAP:Checking " + nextSearch);
        if(exclusionMap.containsKey(nextSearch)) {
View Full Code Here


  /* (non-Javadoc)
   * @see org.archive.wayback.accesscontrol.ExclusionAuthority#checkExclusion(java.lang.String, java.lang.String, java.lang.String)
   */
  public ExclusionResponse checkExclusion(String userAgent, String urlString,
      String captureDate) throws Exception {
    SURTTokenizer tokenizer;
    try {
      tokenizer = new SURTTokenizer(urlString);
    } catch (URIException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      throw new Exception(e);
    }

    while(true) {
      String surtPrefix = tokenizer.nextSearch();
      if(surtPrefix == null) {
        break;
      }
      AdministrativeExclusionRule rule = getRuleFor(surtPrefix,captureDate);
      if(rule != null) {
View Full Code Here

    }
  }
 
  protected boolean isExcluded(String url) {
    try {
      SURTTokenizer st = new SURTTokenizer(url, canonicalizer.isSurtForm());
      while(true) {
        String nextSearch = st.nextSearch();
        if(nextSearch == null) {
          break;
        }
        LOGGER.fine("EXCLUSION-MAP:Checking " + nextSearch);
        if(exclusionMap.containsKey(nextSearch)) {
View Full Code Here

TOP

Related Classes of org.archive.wayback.surt.SURTTokenizer

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.