com.limegroup.gnutella.filters
Class GreedyQueryFilter

java.lang.Object
  extended bycom.limegroup.gnutella.filters.SpamFilter
      extended bycom.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.


Constructor Summary
GreedyQueryFilter()
           
 
Method Summary
 boolean allow(Message m)
          Returns true iff this is considered spam and should not be processed.
 
Methods inherited from class com.limegroup.gnutella.filters.SpamFilter
newPersonalFilter, newRouteFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreedyQueryFilter

public GreedyQueryFilter()
Method Detail

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