Class RoomVCardModule

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

    @Bean(name="roomVCardModule",
          parent=IMixComponent.class,
          active=true)
    public class RoomVCardModule
    extends tigase.pubsub.AbstractPubSubModule
    • Field Summary

      • Fields inherited from class tigase.pubsub.AbstractPubSubModule

        config, log, packetWriter, pubSubLogic
      • Fields inherited from class tigase.stats.CounterValue

        counter, level, name
      • Fields inherited from interface tigase.component.modules.Module

        EMPTY_FEATURES
    • Constructor Summary

      Constructors 
      Constructor Description
      RoomVCardModule()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canHandle​(tigase.server.Packet packet)  
      protected java.util.Optional<java.lang.String> getAvatarData​(tigase.xmpp.jid.BareJID channelJID)  
      protected java.util.Optional<java.lang.String> getAvatarType​(tigase.xmpp.jid.BareJID channelJID)  
      java.lang.String[] getFeatures()  
      tigase.criteria.Criteria getModuleCriteria()  
      void process​(tigase.server.Packet packet)  
      • Methods inherited from class tigase.pubsub.AbstractPubSubModule

        getRepository, makeArray, makeArray
      • 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

      • RoomVCardModule

        public RoomVCardModule()
    • Method Detail

      • canHandle

        public boolean canHandle​(tigase.server.Packet packet)
        Specified by:
        canHandle in interface tigase.component.modules.Module
        Overrides:
        canHandle in class tigase.pubsub.AbstractPubSubModule
      • 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
      • getAvatarData

        protected java.util.Optional<java.lang.String> getAvatarData​(tigase.xmpp.jid.BareJID channelJID)
                                                              throws tigase.component.exceptions.RepositoryException,
                                                                     tigase.component.exceptions.ComponentException
        Throws:
        tigase.component.exceptions.RepositoryException
        tigase.component.exceptions.ComponentException
      • getAvatarType

        protected java.util.Optional<java.lang.String> getAvatarType​(tigase.xmpp.jid.BareJID channelJID)
                                                              throws tigase.component.exceptions.RepositoryException,
                                                                     tigase.component.exceptions.ComponentException
        Throws:
        tigase.component.exceptions.RepositoryException
        tigase.component.exceptions.ComponentException