public class DefaultLinkFilter extends java.lang.Object implements LinkFilter
| Constructor and Description |
|---|
DefaultLinkFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowLink(java.lang.String url,
WebCrawlingContext context)
Check if it is allowed to follow a given link.
|
java.util.Collection<Record> |
filterLinks(java.util.Collection<Record> extractedLinks,
WebCrawlingContext context)
filter extracted links.
|
public java.util.Collection<Record> filterLinks(java.util.Collection<Record> extractedLinks, WebCrawlingContext context) throws WebCrawlerException
LinkFilterfilterLinks in interface LinkFilterextractedLinks - result from LinkExtractor service.context - the WebCrawlingContext.WebCrawlerException - error in processing the links.public boolean allowLink(java.lang.String url,
WebCrawlingContext context)
throws WebCrawlerException
LinkFilterallowLink in interface LinkFilterurl - a String containing the link to be checkedcontext - the WebCrawlingContext.WebCrawlerException - error in processing the links.