|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.importing.crawler.web.filter.DefaultLinkFilter
public class DefaultLinkFilter
Default @ LinkFilter} implementation.
| Constructor Summary | |
|---|---|
DefaultLinkFilter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLinkFilter()
| Method Detail |
|---|
public java.util.Collection<Record> filterLinks(java.util.Collection<Record> extractedLinks,
WebCrawlingContext context)
throws WebCrawlerException
LinkFilter
filterLinks 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
LinkFilter
allowLink in interface LinkFilterurl - a String containing the link to be checkedcontext - the WebCrawlingContext.
WebCrawlerException - error in processing the links.
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||