@Bean(name="disco", active=true) public class DiscoveryModule extends AbstractModule
Modifier and Type | Field and Description |
---|---|
static String |
DISCO_INFO_XMLNS |
static String |
DISCO_ITEMS_XMLNS |
static String |
ID |
eventBus, log, writer
EMPTY_FEATURES
Constructor and Description |
---|
DiscoveryModule() |
Modifier and Type | Method and Description |
---|---|
AdHocCommandModule |
getAdHocCommandModule() |
Set<String> |
getAvailableFeatures() |
String[] |
getFeatures()
Returns XMPP features offered by module.
|
Criteria |
getModuleCriteria()
Returns critera used by Component to select module to handle incoming stanza.
|
List<Module> |
getModules() |
protected Packet |
prepareDiscoInfoReponse(Packet packet,
JID jid,
String node,
JID senderJID)
Deprecated.
|
protected Packet |
prepareDiscoInfoResponse(Packet packet,
JID jid,
String node,
JID senderJID) |
void |
process(Packet packet)
Process incoming stanza.
|
protected void |
processAdHocCommandItems(Packet packet,
JID jid,
String node,
JID senderJID) |
protected void |
processDiscoInfo(Packet packet,
JID jid,
String node,
JID senderJID) |
protected void |
processDiscoItems(Packet packet,
JID jid,
String node,
JID senderJID) |
void |
setAdHocCommandModule(AdHocCommandModule adHocCommandModule) |
void |
setModules(List<Module> modules) |
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
public static final String DISCO_INFO_XMLNS
public static final String DISCO_ITEMS_XMLNS
public static final String ID
public AdHocCommandModule getAdHocCommandModule()
public void setAdHocCommandModule(AdHocCommandModule adHocCommandModule)
public String[] getFeatures()
Module
null
.public Criteria getModuleCriteria()
Module
public void process(Packet packet) throws ComponentException, TigaseStringprepException
Module
packet
- received stanza
.ComponentException
- if stanza can't be processed correctly. ComponentException is converted to error
stanza and returned to stanza sender.TigaseStringprepException
- if there was an error during stringprep processing.protected void processAdHocCommandItems(Packet packet, JID jid, String node, JID senderJID) throws ComponentException, RepositoryException
protected void processDiscoInfo(Packet packet, JID jid, String node, JID senderJID) throws ComponentException, RepositoryException
@Deprecated protected Packet prepareDiscoInfoReponse(Packet packet, JID jid, String node, JID senderJID)
protected Packet prepareDiscoInfoResponse(Packet packet, JID jid, String node, JID senderJID)
protected void processDiscoItems(Packet packet, JID jid, String node, JID senderJID) throws ComponentException, RepositoryException
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.