Class MultiplexerStanzaHandler


  • public class MultiplexerStanzaHandler
    extends StanzaHandler
    Handler of XML stanzas sent by Connection Managers.
    Author:
    Gaston Dombiak
    • Constructor Detail

    • Method Detail

      • processIQ

        protected void processIQ​(org.xmpp.packet.IQ packet)
        Description copied from class: StanzaHandler
        Process the received IQ packet. Registered PacketInterceptor will be invoked before and after the packet was routed.

        Subclasses may redefine this method for different reasons such as modifying the sender of the packet to avoid spoofing, rejecting the packet or even process the packet in another thread.

        Overrides:
        processIQ in class StanzaHandler
        Parameters:
        packet - the received packet.
      • processMessage

        protected void processMessage​(org.xmpp.packet.Message packet)
                               throws UnauthorizedException
        Description copied from class: StanzaHandler
        Process the received Message packet. Registered PacketInterceptor will be invoked before and after the packet was routed.

        Subclasses may redefine this method for different reasons such as modifying the sender of the packet to avoid spoofing, rejecting the packet or even process the packet in another thread.

        Overrides:
        processMessage in class StanzaHandler
        Parameters:
        packet - the received packet.
        Throws:
        UnauthorizedException - if service is not available to sender.
      • processPresence

        protected void processPresence​(org.xmpp.packet.Presence packet)
                                throws UnauthorizedException
        Description copied from class: StanzaHandler
        Process the received Presence packet. Registered PacketInterceptor will be invoked before and after the packet was routed.

        Subclasses may redefine this method for different reasons such as modifying the sender of the packet to avoid spoofing, rejecting the packet or even process the packet in another thread.

        Overrides:
        processPresence in class StanzaHandler
        Parameters:
        packet - the received packet.
        Throws:
        UnauthorizedException - if service is not available to sender.