Interface PacketDeliverer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deliver​(org.xmpp.packet.Packet packet)
      Delivers the given packet based on packet recipient and sender.
    • Method Detail

      • deliver

        void deliver​(org.xmpp.packet.Packet packet)
              throws UnauthorizedException,
                     PacketException
        Delivers the given packet based on packet recipient and sender. The deliverer defers actual routing decisions to other classes.

        Warning

        Be careful to enforce concurrency DbC of concurrent by synchronizing any accesses to class resources.
        Parameters:
        packet - the packet to route
        Throws:
        PacketException - if the packet is null or the packet could not be routed.
        UnauthorizedException - if the user is not authorised