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 Details

    • commandManager

      protected CommandManager commandManager
    • name

      @ConfigField(desc="Module name") protected String name
  • Constructor Details

    • AbstractBareModule

      public AbstractBareModule()
  • Method Details

    • getModuleByUUID

      public static <T extends Module> T getModuleByUUID(String uuid)
    • getName

      public String getName()
      Specified by:
      getName in interface Module
    • setName

      public void setName(String name)
    • addOutPacket

      public boolean addOutPacket(tigase.server.Packet packet)
      Specified by:
      addOutPacket in interface Module
    • addOutPacket

      public boolean addOutPacket(tigase.server.Packet packet, Integer timeout, PacketWriter.Callback callback)
      Specified by:
      addOutPacket in interface Module
    • everyHour

      public void everyHour()
      Specified by:
      everyHour in interface tigase.stats.StatisticHolder
    • everyMinute

      public void everyMinute()
      Specified by:
      everyMinute in interface tigase.stats.StatisticHolder
    • everySecond

      public void everySecond()
      Specified by:
      everySecond in interface tigase.stats.StatisticHolder
    • getFeatures

      public String[] getFeatures()
      Specified by:
      getFeatures in interface Module
    • processPacket

      public boolean processPacket(tigase.server.Packet packet)
      Specified by:
      processPacket in interface Module
    • getDiscoInfo

      public tigase.xml.Element getDiscoInfo(String node, boolean isAdmin)
      Specified by:
      getDiscoInfo in interface Module
    • getDiscoItems

      public List<tigase.xml.Element> getDiscoItems(String node, tigase.xmpp.jid.JID jid, tigase.xmpp.jid.JID from)
      Specified by:
      getDiscoItems in interface Module
    • getJid

      public tigase.xmpp.jid.JID getJid()
      Specified by:
      getJid in interface Module
    • getStatistics

      public void getStatistics(String compName, tigase.stats.StatisticsList list)
      Specified by:
      getStatistics in interface tigase.stats.StatisticHolder
    • setStatisticsPrefix

      public void setStatisticsPrefix(String prefix)
      Specified by:
      setStatisticsPrefix in interface tigase.stats.StatisticHolder
    • statisticExecutedIn

      public void statisticExecutedIn(long executionTime)
      Specified by:
      statisticExecutedIn in interface tigase.stats.StatisticHolder
    • init

      public void init(tigase.xmpp.jid.JID jid, String componentName, PacketWriter writer)
      Specified by:
      init in interface Module
    • initBindings

      public void initBindings(Bindings binds)
      Specified by:
      initBindings in interface Module
    • isAdmin

      public boolean isAdmin(tigase.xmpp.jid.BareJID user)
      Specified by:
      isAdmin in interface Module
    • start

      public void start()
      Specified by:
      start in interface Module
      Specified by:
      start in class AbstractHttpModule
    • stop

      public void stop()
      Specified by:
      stop in interface Module
      Specified by:
      stop in class AbstractHttpModule
    • executedIn

      public void executedIn(String path, long executionTime)
    • initialize

      public void initialize()
      Specified by:
      initialize in interface tigase.kernel.beans.Initializable
      Overrides:
      initialize in class AbstractHttpModule
    • getComponentName

      protected String getComponentName()