org.erowid.masterdoc
Class MasterDocFilter
java.lang.Object
org.erowid.masterdoc.MasterDocFilter
- All Implemented Interfaces:
- IIndexFilter, ISimpleSpiderFilter, ISpiderFilter
- public class MasterDocFilter
- extends Object
- implements ISimpleSpiderFilter
Masterdoc file filter for indexing, spidering.
- Version:
- : $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/masterdoc/MasterDocFilter.java,v 1.2 2005/01/16 06:47:27 gurustu Exp $
- Author:
- : $Author: gurustu $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MasterDocFilter
public MasterDocFilter(String apiRoot,
String docRoot)
- Sets up index and spider filters.
indexMatch
public boolean indexMatch(String fileOrUrl)
- Must match on include and not match on exclude.
- Specified by:
indexMatch
in interface IIndexFilter
- See Also:
IIndexFilter.indexMatch(java.lang.String)
spiderMatch
public boolean spiderMatch(String sourceUrl,
String foundUrl)
- Must match on includes, not on exclude.
- Specified by:
spiderMatch
in interface ISpiderFilter
- See Also:
ISpiderFilter.spiderMatch(java.lang.String, java.lang.String)