public abstract class AbstractBareModule extends AbstractHttpModule implements Module, tigase.kernel.beans.Initializable, tigase.kernel.beans.config.ConfigurationChangedAware, tigase.kernel.beans.UnregisterAware
| Modifier and Type | Field and Description |
|---|---|
protected CommandManager |
commandManager |
protected String |
name |
contextPath, httpServer, uuid, vhostsHTTP_CONTEXT_PATH_KEY, HTTP_SERVER_KEY, VHOSTS_KEY| Constructor and Description |
|---|
AbstractBareModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addOutPacket(tigase.server.Packet packet) |
boolean |
addOutPacket(tigase.server.Packet packet,
Integer timeout,
PacketWriter.Callback callback) |
void |
everyHour() |
void |
everyMinute() |
void |
everySecond() |
void |
executedIn(String path,
long executionTime) |
protected String |
getComponentName() |
tigase.xml.Element |
getDiscoInfo(String node,
boolean isAdmin) |
List<tigase.xml.Element> |
getDiscoItems(String node,
tigase.xmpp.jid.JID jid,
tigase.xmpp.jid.JID from) |
String[] |
getFeatures() |
tigase.xmpp.jid.JID |
getJid() |
static <T extends Module> |
getModuleByUUID(String uuid) |
String |
getName() |
void |
getStatistics(String compName,
tigase.stats.StatisticsList list) |
void |
init(tigase.xmpp.jid.JID jid,
String componentName,
PacketWriter writer) |
void |
initBindings(Bindings binds) |
void |
initialize() |
boolean |
isAdmin(tigase.xmpp.jid.BareJID user) |
boolean |
processPacket(tigase.server.Packet packet) |
void |
setName(String name) |
void |
setStatisticsPrefix(String prefix) |
void |
start() |
void |
statisticExecutedIn(long executionTime) |
void |
stop() |
beanConfigurationChanged, beforeUnregister, getKernel, register, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthRepository, getDescription, getUserRepository, isRequestAllowedprotected CommandManager commandManager
@ConfigField(desc="Module name") protected String name
public void setName(String name)
public boolean addOutPacket(tigase.server.Packet packet)
addOutPacket in interface Modulepublic boolean addOutPacket(tigase.server.Packet packet,
Integer timeout,
PacketWriter.Callback callback)
addOutPacket in interface Modulepublic void everyHour()
everyHour in interface tigase.stats.StatisticHolderpublic void everyMinute()
everyMinute in interface tigase.stats.StatisticHolderpublic void everySecond()
everySecond in interface tigase.stats.StatisticHolderpublic String[] getFeatures()
getFeatures in interface Modulepublic boolean processPacket(tigase.server.Packet packet)
processPacket in interface Modulepublic tigase.xml.Element getDiscoInfo(String node, boolean isAdmin)
getDiscoInfo in interface Modulepublic List<tigase.xml.Element> getDiscoItems(String node, tigase.xmpp.jid.JID jid, tigase.xmpp.jid.JID from)
getDiscoItems in interface Modulepublic void getStatistics(String compName, tigase.stats.StatisticsList list)
getStatistics in interface tigase.stats.StatisticHolderpublic void setStatisticsPrefix(String prefix)
setStatisticsPrefix in interface tigase.stats.StatisticHolderpublic void statisticExecutedIn(long executionTime)
statisticExecutedIn in interface tigase.stats.StatisticHolderpublic void init(tigase.xmpp.jid.JID jid,
String componentName,
PacketWriter writer)
public void initBindings(Bindings binds)
initBindings in interface Modulepublic boolean isAdmin(tigase.xmpp.jid.BareJID user)
public void start()
start in interface Modulestart in class AbstractHttpModulepublic void stop()
stop in interface Modulestop in class AbstractHttpModulepublic void executedIn(String path, long executionTime)
public void initialize()
initialize in interface tigase.kernel.beans.Initializableinitialize in class AbstractHttpModuleprotected String getComponentName()
Copyright © 2013–2019 Tigase. All rights reserved.