Class SelfPingModule

  • All Implemented Interfaces:
    tigase.component.modules.Module, tigase.kernel.beans.Initializable

    @Bean(name="urn:xmpp:ping",
          active=true)
    public class SelfPingModule
    extends tigase.component.modules.impl.XmppPingModule
    implements tigase.kernel.beans.Initializable
    • Field Summary

      • Fields inherited from class tigase.component.modules.impl.XmppPingModule

        ID
      • Fields inherited from class tigase.component.modules.AbstractModule

        eventBus, log, writer
      • Fields inherited from interface tigase.component.modules.Module

        EMPTY_FEATURES
    • Constructor Summary

      Constructors 
      Constructor Description
      SelfPingModule()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected tigase.server.Packet createPingPacket​(java.lang.String id, java.lang.String from, java.lang.String to)  
      void initialize()  
      protected java.lang.String nextStanzaId()  
      void process​(tigase.server.Packet packet)  
      • Methods inherited from class tigase.component.modules.impl.XmppPingModule

        getFeatures, getModuleCriteria
      • Methods inherited from class tigase.component.modules.AbstractModule

        fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface tigase.component.modules.Module

        canHandle
    • Constructor Detail

      • SelfPingModule

        public SelfPingModule()
    • Method Detail

      • process

        public void process​(tigase.server.Packet packet)
                     throws tigase.component.exceptions.ComponentException
        Specified by:
        process in interface tigase.component.modules.Module
        Overrides:
        process in class tigase.component.modules.impl.XmppPingModule
        Throws:
        tigase.component.exceptions.ComponentException
      • initialize

        public void initialize()
        Specified by:
        initialize in interface tigase.kernel.beans.Initializable
      • nextStanzaId

        protected java.lang.String nextStanzaId()
      • createPingPacket

        protected tigase.server.Packet createPingPacket​(java.lang.String id,
                                                        java.lang.String from,
                                                        java.lang.String to)
                                                 throws tigase.util.stringprep.TigaseStringprepException
        Throws:
        tigase.util.stringprep.TigaseStringprepException