@Bean(name="presence-subscribe",
parent=SpamProcessor.class,
active=true)
public class PresenceSubscribeFilter
extends AbstractSpamFilter
implements tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
| Modifier and Type | Class and Description |
|---|---|
static class |
PresenceSubscribeFilter.Counter |
| Constructor and Description |
|---|
PresenceSubscribeFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeUnregister() |
protected void |
cleanUp() |
protected boolean |
filterPacket(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session) |
String |
getId()
Method returns ID of a filter
|
double |
getSpamProbability()
Method returns probability of detection of a spammer.
|
void |
initialize() |
filter, getStatisticsprotected static final String ID
public String getId()
SpamFiltergetId in interface SpamFilterpublic double getSpamProbability()
SpamFilterResultsAwareSpamFilter implementation to decide if sender of a stanza should be blocked (ie. using number of blocked messages within a period of time and spammer detection probability returned by this method.getSpamProbability in interface SpamFilterpublic void initialize()
initialize in interface tigase.kernel.beans.Initializablepublic void beforeUnregister()
beforeUnregister in interface tigase.kernel.beans.UnregisterAwareprotected boolean filterPacket(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session)
filterPacket in class AbstractSpamFilterprotected void cleanUp()
Copyright © 2017–2021 Tigase. All rights reserved.