Class Xep0136MessageArchivingProcessor

  • All Implemented Interfaces:
    Comparable<tigase.xmpp.XMPPImplIfc>, tigase.xmpp.XMPPImplIfc, tigase.xmpp.XMPPProcessorConcurrencyAwareIfc, tigase.xmpp.XMPPProcessorIfc

    @Bean(name="message-archive-xep-0136",
          parent=tigase.server.xmppsession.SessionManager.class,
          active=true)
    public class Xep0136MessageArchivingProcessor
    extends tigase.xmpp.XMPPProcessor
    implements tigase.xmpp.XMPPProcessorIfc
    MessageArchingPlugin is implementation of plugin which forwards messages with type set to "chat" to MessageArchivingComponent to store this messages in message archive.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String id()  
      void process​(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, tigase.db.NonAuthUserRepository repo, Queue<tigase.server.Packet> results, Map<String,​Object> settings)  
      protected void requestingPreferrences​(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, Queue<tigase.server.Packet> results)  
      tigase.xml.Element[] supDiscoFeatures​(tigase.xmpp.XMPPResourceConnection session)  
      String[][] supElementNamePaths()  
      String[] supNamespaces()  
      protected void updateAutoSave​(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, tigase.xml.Element auto, Queue<tigase.server.Packet> results)  
      protected void updatingPreferences​(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, tigase.xml.Element pref, Queue<tigase.server.Packet> results)  
      • Methods inherited from class tigase.xmpp.XMPPProcessor

        canHandle, compareTo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getQueueSize, getStatistics, getThreadsNo, init, isSupporting, supElements, supStreamFeatures, supTypes, toString
      • Methods inherited from interface tigase.xmpp.XMPPImplIfc

        canHandle, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getStatistics, init, isSupporting, supElements, supStreamFeatures, supTypes
    • Constructor Detail

      • Xep0136MessageArchivingProcessor

        public Xep0136MessageArchivingProcessor()
    • Method Detail

      • id

        public String id()
        Specified by:
        id in interface tigase.xmpp.XMPPImplIfc
      • supElementNamePaths

        public String[][] supElementNamePaths()
        Specified by:
        supElementNamePaths in interface tigase.xmpp.XMPPImplIfc
        Overrides:
        supElementNamePaths in class tigase.xmpp.XMPPProcessor
      • supNamespaces

        public String[] supNamespaces()
        Specified by:
        supNamespaces in interface tigase.xmpp.XMPPImplIfc
        Overrides:
        supNamespaces in class tigase.xmpp.XMPPProcessor
      • supDiscoFeatures

        public tigase.xml.Element[] supDiscoFeatures​(tigase.xmpp.XMPPResourceConnection session)
        Specified by:
        supDiscoFeatures in interface tigase.xmpp.XMPPImplIfc
        Overrides:
        supDiscoFeatures in class tigase.xmpp.XMPPProcessor
      • process

        public void process​(tigase.server.Packet packet,
                            tigase.xmpp.XMPPResourceConnection session,
                            tigase.db.NonAuthUserRepository repo,
                            Queue<tigase.server.Packet> results,
                            Map<String,​Object> settings)
                     throws tigase.xmpp.XMPPException
        Specified by:
        process in interface tigase.xmpp.XMPPProcessorIfc
        Throws:
        tigase.xmpp.XMPPException
      • requestingPreferrences

        protected void requestingPreferrences​(tigase.xmpp.XMPPResourceConnection session,
                                              tigase.server.Packet packet,
                                              Queue<tigase.server.Packet> results)
                                       throws tigase.xmpp.NotAuthorizedException,
                                              tigase.db.TigaseDBException
        Throws:
        tigase.xmpp.NotAuthorizedException
        tigase.db.TigaseDBException
      • updatingPreferences

        protected void updatingPreferences​(tigase.xmpp.XMPPResourceConnection session,
                                           tigase.server.Packet packet,
                                           tigase.xml.Element pref,
                                           Queue<tigase.server.Packet> results)
                                    throws tigase.xmpp.PacketErrorTypeException,
                                           tigase.xmpp.NotAuthorizedException
        Throws:
        tigase.xmpp.PacketErrorTypeException
        tigase.xmpp.NotAuthorizedException
      • updateAutoSave

        protected void updateAutoSave​(tigase.xmpp.XMPPResourceConnection session,
                                      tigase.server.Packet packet,
                                      tigase.xml.Element auto,
                                      Queue<tigase.server.Packet> results)
                               throws tigase.xmpp.PacketErrorTypeException,
                                      tigase.xmpp.NotAuthorizedException
        Throws:
        tigase.xmpp.PacketErrorTypeException
        tigase.xmpp.NotAuthorizedException