|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LinkFilter
interface for LinkFilter services. The LinkFilter is called on the result of the LinkExtractor to select only
those links that should really be followed in follow-up tasks.
| Method Summary | |
|---|---|
boolean |
allowLink(java.lang.String link,
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. |
| Method Detail |
|---|
java.util.Collection<Record> filterLinks(java.util.Collection<Record> extractedLinks,
WebCrawlingContext context)
throws WebCrawlerException
extractedLinks - result from LinkExtractor service.context - the WebCrawlingContext.
WebCrawlerException - error in processing the links.
boolean allowLink(java.lang.String link,
WebCrawlingContext context)
throws WebCrawlerException
link - 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 | ||||||||