com.limegroup.gnutella.filters
Class GreedyQueryFilter
java.lang.Object
com.limegroup.gnutella.filters.SpamFilter
com.limegroup.gnutella.filters.GreedyQueryFilter
- public class GreedyQueryFilter
- extends SpamFilter
Stops queries that are bound to match too many files.
Currently, queries that are blocked include "a.asf, d.mp3, etc." or
single-character searches. Additionally, queries such as "*.mp3" or
"mpg" or "*.*" are to be blocked, are at least set to travel less than
other queries.
Method Summary |
boolean |
allow(Message m)
Returns true iff this is considered spam and should not be processed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GreedyQueryFilter
public GreedyQueryFilter()
allow
public boolean allow(Message m)
- Description copied from class:
SpamFilter
- Returns true iff this is considered spam and should not be processed.
- Specified by:
allow
in class SpamFilter