|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.filters.SpamFilter
com.limegroup.gnutella.filters.IPFilter
Blocks messages and hosts based on IP address. Formerly know as BlackListFilter. Immutable.
| Method Summary | |
boolean |
allow(byte[] host)
Checks to see if a given host is banned. |
boolean |
allow(Message m)
Checks if a given Message's host is banned. |
boolean |
allow(java.lang.String host)
Checks if a given host is banned. |
static IPFilter |
instance()
Returns the current active instance of IPFilter. |
static void |
refreshIPFilter()
Refresh the IPFilter's instance. |
| 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 |
| Method Detail |
public static IPFilter instance()
public static void refreshIPFilter()
public boolean allow(java.lang.String host)
host - preferably an IP in the form of A.B.C.D, but if
it is a DNS name then a lookup will be performed.
public boolean allow(byte[] host)
host - the host's IP in byte form.public boolean allow(Message m)
allow in class SpamFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||