public class ErrorCounter extends AnnotatedXMPPProcessor implements XMPPPacketFilterIfc
| Modifier and Type | Class and Description |
|---|---|
static class |
ErrorCounter.ErrorStatisticsHolder |
ALL_NAMES, ALL_PATHS, cmpInfoCLIENT_XMLNS| Constructor and Description |
|---|
ErrorCounter() |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results) |
void |
getStatistics(StatisticsList list)
The method allows to retrieve plugin own statistics if it generates any.
|
protected void |
process(Packet packet,
XMPPResourceConnection session) |
String[][] |
supElementNamePaths()
Method
supElementNamePaths returns an array of element
names in form of a full path to the XML element for
stanzas which can be processed by this plugin. |
id, supDiscoFeatures, supNamespaces, supStreamFeatures, supTypescanHandle, compareTo, concurrentThreadsPerQueue, getComponentInfo, getInstance, init, isSupporting, supElements, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanHandle, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, id, init, isSupporting, supDiscoFeatures, supElements, supNamespaces, supStreamFeatures, supTypescompareTopublic void getStatistics(StatisticsList list)
XMPPImplIfcgetStatistics in interface XMPPImplIfcgetStatistics in class XMPPProcessorlist - is a statistics collection to which plugins own metrics can be added.public String[][] supElementNamePaths()
XMPPImplIfcsupElementNamePaths returns an array of element
names in form of a full path to the XML element for
stanzas which can be processed by this plugin. Each element name path
corresponds to XMLNS returned in array by supNamespaces()
method. The element path itself is represented by a String array with each path
element as a separate String.supElementNamePaths in interface XMPPImplIfcsupElementNamePaths in class AnnotatedXMPPProcessorString[][] value is an array for element paths for which
the plugin offers processing capabilities. Each path is in form of a String array
in order to reduce parsing overhead.public void filter(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results)
filter in interface XMPPPacketFilterIfcprotected void process(Packet packet, XMPPResourceConnection session)
Copyright © 2022 "Tigase, Inc.". All rights reserved.