public interface SpamFilter
SpamProcessor to detect spam.
Created by andrzej on 08.04.2017.| Modifier and Type | Method and Description |
|---|---|
boolean |
filter(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session)
Method processes packet and checks if it is a SPAM or not
|
String |
getId()
Method returns ID of a filter
|
default double |
getSpamProbability()
Method returns probability of detection of a spammer.
|
default void |
getStatistics(String name,
tigase.stats.StatisticsList list)
Method should fill the
list parameter value with statistics about processed stanzas. |
boolean filter(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session)
String getId()
default void getStatistics(String name, tigase.stats.StatisticsList list)
list parameter value with statistics about processed stanzas.
Default implementation should be used if there are no meaningful values to return.default double getSpamProbability()
ResultsAwareSpamFilter 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.Copyright © 2017–2021 Tigase. All rights reserved.