Class RTBLIqModule<RCTX>

java.lang.Object
tigase.component.modules.AbstractModule
tigase.server.rtbl.RTBLIqModule<RCTX>
All Implemented Interfaces:
Module, Initializable, UnregisterAware
Direct Known Subclasses:
RTBLFetchModule, RTBLSubscribeModule

public abstract class RTBLIqModule<RCTX> extends AbstractModule implements Initializable, UnregisterAware
  • Constructor Details

    • RTBLIqModule

      public RTBLIqModule(String requestPrefix)
  • Method Details

    • getComponent

      public RTBLComponent getComponent()
    • getModuleCriteria

      public tigase.criteria.Criteria getModuleCriteria()
      Description copied from interface: Module
      Returns critera used by Component to select module to handle incoming stanza.
      Specified by:
      getModuleCriteria in interface Module
      Returns:
      criteria of selecting module.
    • initialize

      public void initialize()
      Description copied from interface: Initializable
      Method will be called, when bean will be created, configured and ready to use.
      Specified by:
      initialize in interface Initializable
    • beforeUnregister

      public void beforeUnregister()
      Description copied from interface: UnregisterAware
      Method called before bean unregister.
      Specified by:
      beforeUnregister in interface UnregisterAware
    • getOwnJID

      protected tigase.xmpp.jid.JID getOwnJID()
    • sendIq

      protected <T> void sendIq(tigase.xmpp.jid.BareJID to, StanzaType type, Consumer<tigase.xml.Element> consumer, Supplier<RCTX> handleContextSupplier)
    • process

      public void process(Packet packet) throws ComponentException, tigase.util.stringprep.TigaseStringprepException
      Description copied from interface: Module
      Process incoming stanza.
      Specified by:
      process in interface Module
      Parameters:
      packet - received stanza.
      Throws:
      ComponentException - if stanza can't be processed correctly. ComponentException is converted to error stanza and returned to stanza sender.
      tigase.util.stringprep.TigaseStringprepException - if there was an error during stringprep processing.
    • handleSuccess

      protected void handleSuccess(Iq iq)
    • handleResultEvent

      @HandleEvent public void handleResultEvent(RTBLIqModule.ResultEvent event)
    • handleResult

      protected abstract void handleResult(RTBLIqModule.ResultEvent event, RCTX ctx)