public class MessageCarbons extends XMPPProcessor implements XMPPProcessorIfc, XMPPPacketFilterIfc, XMPPPresenceUpdateProcessorIfc
Modifier and Type | Field and Description |
---|---|
static String |
XMLNS |
ALL_NAMES, ALL_PATHS, cmpInfo
CLIENT_XMLNS
Constructor and Description |
---|
MessageCarbons() |
Modifier and Type | Method and Description |
---|---|
void |
filter(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results)
Method processes outgoing packets from SessionManager
|
String |
id()
Returns plugins unique identifier
|
void |
presenceUpdate(XMPPResourceConnection session,
Packet packet,
Queue<Packet> results) |
void |
process(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results,
Map<String,Object> settings)
Process packet received by SM for processing
|
tigase.xml.Element[] |
supDiscoFeatures(XMPPResourceConnection session)
Return array of element containing supported disco features
|
String[][] |
supElementNamePaths()
Returns array of split path of supported elements
|
String[] |
supNamespaces()
Returns array of supported namespaces
|
canHandle, compareTo, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getStatistics, init, isSupporting, supElements, supStreamFeatures, supTypes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canHandle, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getStatistics, init, isSupporting, supElements, supStreamFeatures, supTypes
compareTo
public static final String XMLNS
public String id()
id
in interface XMPPImplIfc
String
valuepublic void process(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings) throws XMPPException
process
in interface XMPPProcessorIfc
packet
- session
- repo
- results
- settings
- XMPPException
public tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
supDiscoFeatures
in interface XMPPImplIfc
supDiscoFeatures
in class XMPPProcessor
session
- Element[]
valuepublic String[][] supElementNamePaths()
supElementNamePaths
in interface XMPPImplIfc
supElementNamePaths
in class XMPPProcessor
String[][]
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 String[] supNamespaces()
supNamespaces
in interface XMPPImplIfc
supNamespaces
in class XMPPProcessor
String[]
valuepublic void presenceUpdate(XMPPResourceConnection session, Packet packet, Queue<Packet> results) throws NotAuthorizedException
presenceUpdate
in interface XMPPPresenceUpdateProcessorIfc
NotAuthorizedException
public void filter(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results)
filter
in interface XMPPPacketFilterIfc
packet
- session
- repo
- results
- Copyright © 2014 "Tigase, Inc.". All rights reserved.