public abstract class AbstractModule extends Object implements Module
| Modifier and Type | Field and Description |
|---|---|
protected CommandManager |
commandManager |
protected String |
uuid |
HTTP_CONTEXT_PATH_KEY, HTTP_SERVER_KEY, VHOSTS_KEY| Constructor and Description |
|---|
AbstractModule() |
| 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) |
tigase.db.AuthRepository |
getAuthRepository() |
Map<String,Object> |
getDefaults() |
tigase.xml.Element |
getDiscoInfo(String node,
boolean isAdmin) |
List<tigase.xml.Element> |
getDiscoItems(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from) |
String[] |
getFeatures() |
tigase.xmpp.JID |
getJid() |
static <T extends AbstractModule> |
getModuleByUUID(String uuid) |
void |
getStatistics(String compName,
tigase.stats.StatisticsList list) |
tigase.db.UserRepository |
getUserRepository() |
void |
init(tigase.xmpp.JID jid,
PacketWriter writer) |
void |
initBindings(Bindings binds) |
boolean |
isAdmin(tigase.xmpp.BareJID user) |
boolean |
isRequestAllowed(String key,
String domain,
String path) |
boolean |
processPacket(tigase.server.Packet packet) |
void |
setProperties(Map<String,Object> props) |
void |
setStatisticsPrefix(String prefix) |
void |
start() |
void |
statisticExecutedIn(long executionTime) |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getNameprotected CommandManager commandManager
protected final String uuid
public static <T extends AbstractModule> T getModuleByUUID(String uuid)
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, tigase.xmpp.JID from)
getDiscoItems in interface Modulepublic Map<String,Object> getDefaults()
getDefaults 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 setProperties(Map<String,Object> props)
setProperties in interface Modulepublic void statisticExecutedIn(long executionTime)
statisticExecutedIn in interface tigase.stats.StatisticHolderpublic void init(tigase.xmpp.JID jid,
PacketWriter writer)
public void initBindings(Bindings binds)
initBindings in interface Modulepublic boolean isRequestAllowed(String key, String domain, String path)
isRequestAllowed in interface Modulepublic tigase.db.UserRepository getUserRepository()
getUserRepository in interface Modulepublic tigase.db.AuthRepository getAuthRepository()
getAuthRepository in interface Modulepublic void executedIn(String path, long executionTime)
Copyright © 2013–2020 "Tigase, Inc.". All rights reserved.