01: package net.javacoding.jspider.core.rule.impl;
02:
03: import net.javacoding.jspider.api.model.Decision;
04: import net.javacoding.jspider.api.model.Site;
05: import net.javacoding.jspider.core.SpiderContext;
06: import net.javacoding.jspider.spi.Rule;
07:
08: import java.net.URL;
09:
10: /**
11: * Base implemenation of a Rule. To be subclasses by concrete rules.
12: *
13: * $Id: BaseRuleImpl.java,v 1.10 2003/04/03 16:24:54 vanrogu Exp $
14: *
15: * @author Günther Van Roey
16: */
17: public abstract class BaseRuleImpl implements Rule {
18:
19: /**
20: * Returns the name of the rule.
21: * @return the name of the rule
22: */
23: public String getName() {
24: return this .getClass().getName();
25: }
26:
27: public abstract Decision apply(SpiderContext context,
28: Site currentSite, URL url);
29:
30: }
|