|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IURLFilter
Filter a document based on its URL, before any download of HTTP headers or content of a document.
It is highly recommended to overwrite the toString()
method
to representing this filter properly in human-readable form (e.g. logging).
It is a good idea to include specifics of this filter so crawler users
can know exactly why documents got accepted/rejected rejected if need be.
Implementors also implementing IXMLConfigurable must name their XML tag
filter
to ensure it gets loaded properly.
Method Summary | |
---|---|
boolean |
acceptURL(String url)
Whether to accept this URL. |
Method Detail |
---|
boolean acceptURL(String url)
url
- the URL to accept/reject
true
if accepted, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |