org.archive.crawler.frontier
Class URIQueueMatcher

java.lang.Object
  extended by org.archive.crawler.frontier.URIQueueMatcher
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class URIQueueMatcher
extends java.lang.Object
implements org.apache.commons.collections.Predicate

An implementation of the QueueItemMatcher suitible for the queues used by the Frontier

Author:
Kristinn Sigurdsson
See Also:
Predicate, HostQueuesFrontier

Constructor Summary
URIQueueMatcher(java.lang.String pattern, boolean delete, Frontier frontier)
          Constructor.
 
Method Summary
 boolean evaluate(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIQueueMatcher

public URIQueueMatcher(java.lang.String pattern,
                       boolean delete,
                       Frontier frontier)
Constructor.

Parameters:
pattern - A regular expression that will be applied to the CandidateURIs' URIstring to determine if they 'match'.
delete - If true then each time a match is hit, the related CandidateURI will have it's fetch status set to Deleted by user and sent to the frontier's finish method for final disposition.
frontier - The parent frontier. This can be null if delete is false. Must be valid if delete is true.
Method Detail

evaluate

public boolean evaluate(java.lang.Object o)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate


Copyright © 2003-2005 Internet Archive. All Rights Reserved.