public class DiscoveryModule<CTX extends Context> extends AbstractModule<CTX>
Modifier and Type | Field and Description |
---|---|
static String |
DISCO_INFO_XMLNS |
static String |
DISCO_ITEMS_XMLNS |
static String |
ID |
context, log
Constructor and Description |
---|
DiscoveryModule() |
Modifier and Type | Method and Description |
---|---|
String[] |
getFeatures()
Returns XMPP features offered by module.
|
tigase.criteria.Criteria |
getModuleCriteria()
Returns critera used by Component to select module to handle incoming
stanza.
|
void |
process(Packet packet)
Process incoming stanza.
|
protected void |
processAdHocCommandItems(Packet packet,
tigase.xmpp.JID jid,
String node,
tigase.xmpp.JID senderJID) |
protected void |
processDiscoInfo(Packet packet,
tigase.xmpp.JID jid,
String node,
tigase.xmpp.JID senderJID) |
protected void |
processDiscoItems(Packet packet,
tigase.xmpp.JID jid,
String node,
tigase.xmpp.JID senderJID) |
afterRegistration, beforeRegister, fireEvent, setContext, unregisterModule, write, write
public static final String DISCO_INFO_XMLNS
public static final String DISCO_ITEMS_XMLNS
public static final String ID
public String[] getFeatures()
Module
null
.public tigase.criteria.Criteria getModuleCriteria()
Module
public void process(Packet packet) throws ComponentException, tigase.util.TigaseStringprepException
Module
packet
- received stanza
.ComponentException
- if stanza can't be processed correctly. ComponentException is
converted to error stanza and returned to stanza sender.tigase.util.TigaseStringprepException
- if there was an error during stringprep processing.protected void processAdHocCommandItems(Packet packet, tigase.xmpp.JID jid, String node, tigase.xmpp.JID senderJID) throws ComponentException, RepositoryException
protected void processDiscoInfo(Packet packet, tigase.xmpp.JID jid, String node, tigase.xmpp.JID senderJID) throws ComponentException, RepositoryException
protected void processDiscoItems(Packet packet, tigase.xmpp.JID jid, String node, tigase.xmpp.JID senderJID) throws ComponentException, RepositoryException
Copyright © 2014 "Tigase, Inc.". All rights reserved.