Package tigase.pubsub.modules
Class DiscoveryModule
java.lang.Object
tigase.component.modules.AbstractModule
tigase.component.modules.impl.DiscoveryModule
tigase.pubsub.modules.DiscoveryModule
- All Implemented Interfaces:
tigase.component.modules.Module
@Bean(name="disco",
parent=PubSubComponent.class,
active=true)
public class DiscoveryModule
extends tigase.component.modules.impl.DiscoveryModule
-
Field Summary
FieldsFields inherited from class tigase.component.modules.impl.DiscoveryModule
component, DISCO_INFO_XMLNS, DISCO_ITEMS_XMLNS, IDFields inherited from class tigase.component.modules.AbstractModule
eventBus, log, writerFields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(tigase.server.Packet packet) String[]protected IPubSubRepositoryprotected booleanisNodeDiscoverable(tigase.xmpp.jid.BareJID serviceJid, AbstractNodeConfig nodeConfig, tigase.xmpp.jid.JID senderJid) protected String[]prefilterNodesWithRSM(String[] nodes, tigase.xmpp.rsm.RSM rsm) protected tigase.server.PacketprepareDiscoInfoResponse(tigase.server.Packet packet, tigase.xmpp.jid.JID jid, String node, tigase.xmpp.jid.JID senderJID) protected List<tigase.xml.Element> prepareDiscoItems(tigase.xmpp.jid.JID toJid, String nodeName, tigase.xmpp.jid.JID senderJid, tigase.xmpp.rsm.RSM rsm) protected voidprocessDiscoInfo(tigase.server.Packet packet, tigase.xmpp.jid.JID jid, String node, tigase.xmpp.jid.JID senderJID) Methods inherited from class tigase.component.modules.impl.DiscoveryModule
getAdHocCommandModule, getAvailableFeatures, getAvailableFeatures, getModuleCriteria, getModules, prepareDiscoInfoReponse, process, processAdHocCommandItems, processDiscoItems, setAdHocCommandModule, setModulesMethods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
-
Field Details
-
PUBSUB_FEATURE_METADATA
- See Also:
-
pubSubLogic
-
-
Constructor Details
-
DiscoveryModule
public DiscoveryModule()
-
-
Method Details
-
getFeatures
- Specified by:
getFeaturesin interfacetigase.component.modules.Module- Overrides:
getFeaturesin classtigase.component.modules.impl.DiscoveryModule
-
canHandle
public boolean canHandle(tigase.server.Packet packet) -
processDiscoInfo
protected void processDiscoInfo(tigase.server.Packet packet, tigase.xmpp.jid.JID jid, String node, tigase.xmpp.jid.JID senderJID) throws tigase.component.exceptions.ComponentException, tigase.component.exceptions.RepositoryException - Overrides:
processDiscoInfoin classtigase.component.modules.impl.DiscoveryModule- Throws:
tigase.component.exceptions.ComponentExceptiontigase.component.exceptions.RepositoryException
-
prepareDiscoItems
protected List<tigase.xml.Element> prepareDiscoItems(tigase.xmpp.jid.JID toJid, String nodeName, tigase.xmpp.jid.JID senderJid, tigase.xmpp.rsm.RSM rsm) throws tigase.component.exceptions.ComponentException, tigase.component.exceptions.RepositoryException - Overrides:
prepareDiscoItemsin classtigase.component.modules.impl.DiscoveryModule- Throws:
tigase.component.exceptions.ComponentExceptiontigase.component.exceptions.RepositoryException
-
isNodeDiscoverable
protected boolean isNodeDiscoverable(tigase.xmpp.jid.BareJID serviceJid, AbstractNodeConfig nodeConfig, tigase.xmpp.jid.JID senderJid) throws tigase.component.exceptions.ComponentException, tigase.component.exceptions.RepositoryException - Throws:
tigase.component.exceptions.ComponentExceptiontigase.component.exceptions.RepositoryException
-
prefilterNodesWithRSM
protected String[] prefilterNodesWithRSM(String[] nodes, tigase.xmpp.rsm.RSM rsm) throws PubSubException - Throws:
PubSubException
-
prepareDiscoInfoResponse
protected tigase.server.Packet prepareDiscoInfoResponse(tigase.server.Packet packet, tigase.xmpp.jid.JID jid, String node, tigase.xmpp.jid.JID senderJID) - Overrides:
prepareDiscoInfoResponsein classtigase.component.modules.impl.DiscoveryModule
-
getRepository
-