public class TransclusionDecideRule extends PredicatedDecideRule
CandidateURI#getPathFromSeed()
) ends
with at least one, but not more than, the given number of
non-navlink ('L') hops.
Otherwise, if the path-from-seed is empty or if a navlink ('L') occurs
within max-trans-hops of the tail of the path-from-seed, this rule
returns PASS.
Thus, it allows things like embedded resources (frames/images/media) and redirects to be transitively included ('transcluded') in a crawl, even if they otherwise would not, for some reasonable number of hops (usually 1-5).
comment, kp
Constructor and Description |
---|
TransclusionDecideRule()
Usual constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(CrawlURI curi)
Evaluate whether given object is within the acceptable thresholds of
transitive hops.
|
int |
getMaxSpeculativeHops() |
int |
getMaxTransHops() |
void |
setMaxSpeculativeHops(int maxSpeculativeHops) |
void |
setMaxTransHops(int maxTransHops) |
getDecision, innerDecide, setDecision
accepts, decisionFor, getComment, getEnabled, getKeyedProperties, onlyDecision, setComment, setEnabled
public int getMaxTransHops()
public void setMaxTransHops(int maxTransHops)
public int getMaxSpeculativeHops()
public void setMaxSpeculativeHops(int maxSpeculativeHops)
protected boolean evaluate(CrawlURI curi)
evaluate
in class PredicatedDecideRule
object
- Object to make decision on.Copyright © 2003-2014 Internet Archive. All Rights Reserved.