1 25 package org.archive.crawler.postprocessor; 26 27 35 public class TextWaitEvaluator extends ContentBasedWaitEvaluator { 36 37 private static final long serialVersionUID = -328402266684681632L; 38 39 protected final static Long DEFAULT_INITIAL_WAIT_INTERVAL = 40 new Long (43200); 42 protected final static String DEFAULT_CONTENT_REGEXPR = "^text/.*$"; 44 49 public TextWaitEvaluator(String name) { 50 super(name,"Evaluates how long to wait before fetching a URI again. " + 51 "Only handles CrawlURIs whose content type indicates a " + 52 "text document (^text/.*$).\n" + 53 "Typically, this processor should be in the post processing " + 54 "chain. It will pass if another wait evaluator has already " + 55 "processed the CrawlURI.", 56 DEFAULT_CONTENT_REGEXPR, 57 DEFAULT_INITIAL_WAIT_INTERVAL, 58 DEFAULT_MAX_WAIT_INTERVAL, 59 DEFAULT_MIN_WAIT_INTERVAL, 60 DEFAULT_UNCHANGED_FACTOR, 61 DEFAULT_CHANGED_FACTOR); 62 } 63 64 65 } 66 | Popular Tags |