@Bean(name="presence-subscribe-outgoing",
parent=SpamProcessor.class,
active=false)
public class PresenceSubscribeOutgoingFilter
extends AbstractSpamFilter
| Modifier and Type | Class and Description |
|---|---|
static class |
PresenceSubscribeOutgoingFilter.Counter |
| Constructor and Description |
|---|
PresenceSubscribeOutgoingFilter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
filter, getStatisticsprotected static final String ID
public String getId()
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.protected boolean filterPacket(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session)
filterPacket in class AbstractSpamFilterCopyright © 2017–2021 Tigase. All rights reserved.