Package tigase.http.modules
Class AbstractBareModule
java.lang.Object
tigase.http.AbstractHttpModule
tigase.http.modules.AbstractBareModule
- All Implemented Interfaces:
Module,tigase.kernel.beans.config.ConfigurationChangedAware,tigase.kernel.beans.Initializable,tigase.kernel.beans.RegistrarBean,tigase.kernel.beans.UnregisterAware,tigase.stats.StatisticHolder
- Direct Known Subclasses:
AbstractModule,SetupModeRedirectModule,SetupModule,UserStatusEndpointModule
public abstract class AbstractBareModule
extends AbstractHttpModule
implements Module, tigase.kernel.beans.Initializable, tigase.kernel.beans.config.ConfigurationChangedAware, tigase.kernel.beans.UnregisterAware
Created by andrzej on 28.03.2017.
-
Field Summary
FieldsFields inherited from class tigase.http.AbstractHttpModule
contextPath, httpServer, uuid, vhostsFields inherited from interface tigase.http.modules.Module
HTTP_CONTEXT_PATH_KEY, HTTP_SERVER_KEY, VHOSTS_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOutPacket(tigase.server.Packet packet) booleanaddOutPacket(tigase.server.Packet packet, Integer timeout, PacketWriter.Callback callback) voidvoidvoidvoidexecutedIn(String path, long executionTime) protected Stringtigase.xml.ElementgetDiscoInfo(String node, boolean isAdmin) List<tigase.xml.Element>getDiscoItems(String node, tigase.xmpp.jid.JID jid, tigase.xmpp.jid.JID from) String[]tigase.xmpp.jid.JIDgetJid()static <T extends Module>
TgetModuleByUUID(String uuid) getName()voidgetStatistics(String compName, tigase.stats.StatisticsList list) voidinit(tigase.xmpp.jid.JID jid, String componentName, PacketWriter writer) voidinitBindings(Bindings binds) voidbooleanisAdmin(tigase.xmpp.jid.BareJID user) booleanprocessPacket(tigase.server.Packet packet) voidvoidsetStatisticsPrefix(String prefix) voidstart()voidstatisticExecutedIn(long executionTime) voidstop()Methods inherited from class tigase.http.AbstractHttpModule
beanConfigurationChanged, beforeUnregister, getKernel, register, unregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.kernel.beans.config.ConfigurationChangedAware
beanConfigurationChangedMethods inherited from interface tigase.http.modules.Module
getAuthRepository, getDescription, getUserRepository, isRequestAllowedMethods inherited from interface tigase.kernel.beans.UnregisterAware
beforeUnregister
-
Field Details
-
commandManager
-
name
-
-
Constructor Details
-
AbstractBareModule
public AbstractBareModule()
-
-
Method Details
-
getModuleByUUID
-
getName
-
setName
-
addOutPacket
public boolean addOutPacket(tigase.server.Packet packet) - Specified by:
addOutPacketin interfaceModule
-
addOutPacket
public boolean addOutPacket(tigase.server.Packet packet, Integer timeout, PacketWriter.Callback callback) - Specified by:
addOutPacketin interfaceModule
-
everyHour
public void everyHour()- Specified by:
everyHourin interfacetigase.stats.StatisticHolder
-
everyMinute
public void everyMinute()- Specified by:
everyMinutein interfacetigase.stats.StatisticHolder
-
everySecond
public void everySecond()- Specified by:
everySecondin interfacetigase.stats.StatisticHolder
-
getFeatures
- Specified by:
getFeaturesin interfaceModule
-
processPacket
public boolean processPacket(tigase.server.Packet packet) - Specified by:
processPacketin interfaceModule
-
getDiscoInfo
- Specified by:
getDiscoInfoin interfaceModule
-
getDiscoItems
public List<tigase.xml.Element> getDiscoItems(String node, tigase.xmpp.jid.JID jid, tigase.xmpp.jid.JID from) - Specified by:
getDiscoItemsin interfaceModule
-
getJid
public tigase.xmpp.jid.JID getJid() -
getStatistics
- Specified by:
getStatisticsin interfacetigase.stats.StatisticHolder
-
setStatisticsPrefix
- Specified by:
setStatisticsPrefixin interfacetigase.stats.StatisticHolder
-
statisticExecutedIn
public void statisticExecutedIn(long executionTime) - Specified by:
statisticExecutedInin interfacetigase.stats.StatisticHolder
-
init
-
initBindings
- Specified by:
initBindingsin interfaceModule
-
isAdmin
public boolean isAdmin(tigase.xmpp.jid.BareJID user) -
start
public void start()- Specified by:
startin interfaceModule- Specified by:
startin classAbstractHttpModule
-
stop
public void stop()- Specified by:
stopin interfaceModule- Specified by:
stopin classAbstractHttpModule
-
executedIn
-
initialize
public void initialize()- Specified by:
initializein interfacetigase.kernel.beans.Initializable- Overrides:
initializein classAbstractHttpModule
-
getComponentName
-