org.supermind.crawl.scope
Class SameParentTLDFLFilter

java.lang.Object
  extended by org.supermind.crawl.scope.SameParentTLDFLFilter
All Implemented Interfaces:
ScopeFilter<FetchListScope.Input>

public class SameParentTLDFLFilter
extends java.lang.Object
implements ScopeFilter<FetchListScope.Input>

Allows a URL if it has the same TLD (top-level domain) as its parent (originating page).


Field Summary
 
Fields inherited from interface org.supermind.crawl.scope.ScopeFilter
ABSTAIN, ALLOW, REJECT
 
Constructor Summary
SameParentTLDFLFilter()
           
 
Method Summary
 int filter(FetchListScope.Input input)
          Filter the input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SameParentTLDFLFilter

public SameParentTLDFLFilter()
Method Detail

filter

public int filter(FetchListScope.Input input)
Description copied from interface: ScopeFilter
Filter the input. Possible return values are ScopeFilter.ALLOW, ScopeFilter.REJECT and ScopeFilter.ABSTAIN.

Specified by:
filter in interface ScopeFilter<FetchListScope.Input>
Returns: