Class CapsModule

  • All Implemented Interfaces:
    tigase.component.modules.Module, tigase.stats.StatisticHolder

    @Bean(name="capsModule",
          parent=PubSubComponent.class,
          active=true)
    public class CapsModule
    extends AbstractPubSubModule
    Class implements discovery of capabilities using disco#info query and CAPS.
    Author:
    andrzej
    • Constructor Summary

      Constructors 
      Constructor Description
      CapsModule()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getFeatures()  
      tigase.criteria.Criteria getModuleCriteria()  
      void process​(tigase.server.Packet packet)  
      java.lang.String[] processPresence​(tigase.server.Packet packet)
      Processes presence packet and send disco#info queries when needed
      • Methods inherited from class tigase.stats.StatisticHolderImpl

        getStatistics, setStatisticsPrefix, statisticExecutedIn
      • Methods inherited from class tigase.stats.Counter

        everyHour, everyMinute, everySecond, getPerHour, getPerMinute, getPerSecond
      • Methods inherited from class tigase.stats.CounterValue

        getLevel, getName, getValue, inc, setName, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface tigase.stats.StatisticHolder

        everyHour, everyMinute, everySecond
    • Constructor Detail

      • CapsModule

        public CapsModule()
    • Method Detail

      • getFeatures

        public java.lang.String[] getFeatures()
      • getModuleCriteria

        public tigase.criteria.Criteria getModuleCriteria()
      • process

        public void process​(tigase.server.Packet packet)
                     throws tigase.component.exceptions.ComponentException,
                            tigase.util.stringprep.TigaseStringprepException
        Throws:
        tigase.component.exceptions.ComponentException
        tigase.util.stringprep.TigaseStringprepException
      • processPresence

        public java.lang.String[] processPresence​(tigase.server.Packet packet)
        Processes presence packet and send disco#info queries when needed
        Parameters:
        packet - presence packet to process
        Returns:
        CAPS nodes found in presence packets or null