@Bean(name="message-same-long-body",
parent=SpamProcessor.class,
active=true)
public class MessageFilterSameLongBody
extends AbstractSpamFilter
| Constructor and Description |
|---|
MessageFilterSameLongBody() |
| 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.
|
void |
getStatistics(String name,
tigase.stats.StatisticsList list)
Method should fill the
list parameter value with statistics about processed stanzas. |
filterprotected 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.public void getStatistics(String name, tigase.stats.StatisticsList list)
SpamFilterlist parameter value with statistics about processed stanzas.
Default implementation should be used if there are no meaningful values to return.getStatistics in interface SpamFiltergetStatistics in class AbstractSpamFilterprotected boolean filterPacket(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session)
filterPacket in class AbstractSpamFilterCopyright © 2017–2021 Tigase. All rights reserved.