org.erowid.masterdoc
Class MasterDocFilter

java.lang.Object
  extended byorg.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 $

Constructor Summary
MasterDocFilter(String apiRoot, String docRoot)
          Sets up index and spider filters.
 
Method Summary
 boolean indexMatch(String fileOrUrl)
          Must match on include and not match on exclude.
 boolean spiderMatch(String sourceUrl, String foundUrl)
          Must match on includes, not on exclude.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterDocFilter

public MasterDocFilter(String apiRoot,
                       String docRoot)
Sets up index and spider filters.

Method Detail

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)

spero logo small Sperowider is
© 2005 Erowid.org