Class IqStanzaForwarderModule

  • All Implemented Interfaces:
    tigase.component.modules.Module

    @Bean(name="iqforwarder",
          active=true)
    public class IqStanzaForwarderModule
    extends AbstractMucModule
    Author:
    bmalkow
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ID  
      • Fields inherited from class tigase.component.modules.AbstractModule

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

        EMPTY_FEATURES
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean checkIfProcessed​(tigase.xml.Element element)  
      protected void forwardPacket​(tigase.server.Packet packet, Room room, java.lang.String senderNickname, tigase.xmpp.jid.JID senderJID, java.lang.String recipientNickname, boolean isRequest)  
      protected void forwardPacket​(tigase.server.Packet packet, tigase.xmpp.jid.BareJID roomJID, java.lang.String senderNickname, tigase.xmpp.jid.JID recipientJid, java.lang.String id)  
      protected static java.lang.String generateJidShortcut​(tigase.xmpp.jid.JID jid)  
      java.lang.String[] getFeatures()  
      tigase.criteria.Criteria getModuleCriteria()  
      protected boolean isRequest​(tigase.server.Packet packet)  
      void process​(tigase.server.Packet packet)  
      • 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

      • IqStanzaForwarderModule

        public IqStanzaForwarderModule()
    • 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
      • generateJidShortcut

        protected static java.lang.String generateJidShortcut​(tigase.xmpp.jid.JID jid)
                                                       throws tigase.component.exceptions.ComponentException
        Throws:
        tigase.component.exceptions.ComponentException
      • forwardPacket

        protected void forwardPacket​(tigase.server.Packet packet,
                                     Room room,
                                     java.lang.String senderNickname,
                                     tigase.xmpp.jid.JID senderJID,
                                     java.lang.String recipientNickname,
                                     boolean isRequest)
                              throws tigase.component.exceptions.ComponentException,
                                     tigase.util.stringprep.TigaseStringprepException
        Throws:
        tigase.component.exceptions.ComponentException
        tigase.util.stringprep.TigaseStringprepException
      • forwardPacket

        protected void forwardPacket​(tigase.server.Packet packet,
                                     tigase.xmpp.jid.BareJID roomJID,
                                     java.lang.String senderNickname,
                                     tigase.xmpp.jid.JID recipientJid,
                                     java.lang.String id)
                              throws tigase.util.stringprep.TigaseStringprepException
        Throws:
        tigase.util.stringprep.TigaseStringprepException
      • checkIfProcessed

        protected boolean checkIfProcessed​(tigase.xml.Element element)