Package tigase.pubsub
Class PepPlugin
- java.lang.Object
-
- tigase.xmpp.XMPPProcessor
-
- tigase.pubsub.PepPlugin
-
- All Implemented Interfaces:
Comparable<tigase.xmpp.XMPPImplIfc>,tigase.xmpp.impl.ServiceDiscovery.AccountServiceProvider,tigase.xmpp.XMPPImplIfc,tigase.xmpp.XMPPProcessorConcurrencyAwareIfc,tigase.xmpp.XMPPProcessorIfc,tigase.xmpp.XMPPStopListenerIfc
@Bean(name="pep", parent=tigase.server.xmppsession.SessionManager.class, active=true) public class PepPlugin extends tigase.xmpp.XMPPProcessor implements tigase.xmpp.XMPPProcessorIfc, tigase.xmpp.XMPPStopListenerIfc, tigase.xmpp.impl.ServiceDiscovery.AccountServiceProviderImplements PubSub support for every local user account on it's bare jid using local version of PubSub component.- Author:
- andrzej
-
-
Field Summary
Fields Modifier and Type Field Description protected static tigase.xml.Element[]DISCO_FEATURESprotected static StringDISCO_INFO_XMLNSprotected static StringDISCO_ITEMS_XMLNSprotected static String[][]ELEMENTSprotected static StringPUBSUB_XMLNSprotected static StringPUBSUB_XMLNS_OWNERprotected tigase.xmpp.jid.JIDpubsubJidprotected Set<String>simpleNodesprotected booleansimplePepEnabledprotected static String[]XMLNSS
-
Constructor Summary
Constructors Constructor Description PepPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intconcurrentQueuesNo()protected tigase.xmpp.jid.JIDgetPubsubJid(tigase.xmpp.XMPPResourceConnection session, tigase.xmpp.jid.JID serviceJid)tigase.xmpp.jid.JIDgetServiceProviderComponentJid()Stringid()voidprocess(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, tigase.db.NonAuthUserRepository repo, Queue<tigase.server.Packet> results, Map<String,Object> settings)protected voidprocessIq(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, Queue<tigase.server.Packet> results)protected voidprocessPresence(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, Queue<tigase.server.Packet> results)voidstopped(tigase.xmpp.XMPPResourceConnection session, Queue<tigase.server.Packet> results, Map<String,Object> settings)tigase.xml.Element[]supDiscoFeatures(tigase.xmpp.XMPPResourceConnection session)String[][]supElementNamePaths()String[]supNamespaces()Set<tigase.xmpp.StanzaType>supTypes()-
Methods inherited from class tigase.xmpp.XMPPProcessor
canHandle, compareTo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getQueueSize, getStatistics, getThreadsNo, init, isSupporting, supElements, supStreamFeatures, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
PUBSUB_XMLNS
protected static final String PUBSUB_XMLNS
- See Also:
- Constant Field Values
-
PUBSUB_XMLNS_OWNER
protected static final String PUBSUB_XMLNS_OWNER
- See Also:
- Constant Field Values
-
DISCO_FEATURES
protected static final tigase.xml.Element[] DISCO_FEATURES
-
DISCO_INFO_XMLNS
protected static final String DISCO_INFO_XMLNS
- See Also:
- Constant Field Values
-
DISCO_ITEMS_XMLNS
protected static final String DISCO_ITEMS_XMLNS
- See Also:
- Constant Field Values
-
ELEMENTS
protected static final String[][] ELEMENTS
-
XMLNSS
protected static final String[] XMLNSS
-
pubsubJid
@ConfigField(desc="PubSub Component JID", alias="pubsub-jid") protected tigase.xmpp.jid.JID pubsubJid
-
simplePepEnabled
@ConfigField(desc="Enable simple PEP", alias="simple-pep-enabled") protected boolean simplePepEnabled
-
-
Method Detail
-
id
public String id()
- Specified by:
idin interfacetigase.xmpp.XMPPImplIfc
-
concurrentQueuesNo
public int concurrentQueuesNo()
- Specified by:
concurrentQueuesNoin interfacetigase.xmpp.XMPPImplIfc
-
process
public void process(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, tigase.db.NonAuthUserRepository repo, Queue<tigase.server.Packet> results, Map<String,Object> settings) throws tigase.xmpp.XMPPException- Specified by:
processin interfacetigase.xmpp.XMPPProcessorIfc- Throws:
tigase.xmpp.XMPPException
-
supDiscoFeatures
public tigase.xml.Element[] supDiscoFeatures(tigase.xmpp.XMPPResourceConnection session)
- Specified by:
supDiscoFeaturesin interfacetigase.xmpp.XMPPImplIfc- Overrides:
supDiscoFeaturesin classtigase.xmpp.XMPPProcessor
-
supElementNamePaths
public String[][] supElementNamePaths()
- Specified by:
supElementNamePathsin interfacetigase.xmpp.XMPPImplIfc- Overrides:
supElementNamePathsin classtigase.xmpp.XMPPProcessor
-
supNamespaces
public String[] supNamespaces()
- Specified by:
supNamespacesin interfacetigase.xmpp.XMPPImplIfc- Overrides:
supNamespacesin classtigase.xmpp.XMPPProcessor
-
supTypes
public Set<tigase.xmpp.StanzaType> supTypes()
- Specified by:
supTypesin interfacetigase.xmpp.XMPPImplIfc- Overrides:
supTypesin classtigase.xmpp.XMPPProcessor
-
stopped
public void stopped(tigase.xmpp.XMPPResourceConnection session, Queue<tigase.server.Packet> results, Map<String,Object> settings)- Specified by:
stoppedin interfacetigase.xmpp.XMPPStopListenerIfc
-
getServiceProviderComponentJid
public tigase.xmpp.jid.JID getServiceProviderComponentJid()
- Specified by:
getServiceProviderComponentJidin interfacetigase.xmpp.impl.ServiceDiscovery.AccountServiceProvider
-
getPubsubJid
protected tigase.xmpp.jid.JID getPubsubJid(tigase.xmpp.XMPPResourceConnection session, tigase.xmpp.jid.JID serviceJid)
-
processIq
protected void processIq(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, Queue<tigase.server.Packet> results) throws tigase.xmpp.XMPPException- Throws:
tigase.xmpp.XMPPException
-
processPresence
protected void processPresence(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, Queue<tigase.server.Packet> results) throws tigase.xmpp.NotAuthorizedException- Throws:
tigase.xmpp.NotAuthorizedException
-
-