|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.domain.RefererFilterManager
public class RefererFilterManager
A class to manage regular expressions used to filter out obscene and spam referers that appear in the logs.
| Method Summary | |
|---|---|
void |
addFilter(RefererFilter newFilter)
Adds a new filter to the existing list. |
java.util.List |
filter(java.util.List referers)
Filters a collection of referers using the filters managed by this instance. |
java.util.Collection |
getFilters()
Gets a collection containing filters. |
boolean |
removeFilter(java.lang.String expression)
Removes a filter from the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void addFilter(RefererFilter newFilter)
newFilter - a RefererFilter instancepublic boolean removeFilter(java.lang.String expression)
expression - the expression to be removedpublic java.util.Collection getFilters()
public java.util.List filter(java.util.List referers)
referers - the List of referers (CountedUrls) to be filtered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||