Class C2SDeliveryErrorProcessor

  • public class C2SDeliveryErrorProcessor
    extends java.lang.Object
    Class implements static methods used to create packets to resend messages undelivered to client by C2S and methods used later to distinguish if packet was resent for redelivery
    • Constructor Detail

      • C2SDeliveryErrorProcessor

        public C2SDeliveryErrorProcessor()
    • Method Detail

      • filterErrorElement

        public static void filterErrorElement​(Element messageElem)
      • getDeliveryError

        public static Element getDeliveryError​(Packet packet)
        Finds delivery-error element in packet and returns it
        true - if packet is delivery-error
      • isDeliveryError

        public static boolean isDeliveryError​(Packet packet)
        Checks if packet is delivery-error packet
        true - if packet is delivery-error
      • makeDeliveryError

        public static Packet makeDeliveryError​(Packet packet,
                                               java.lang.Long stamp)
        Creates delivery-error packets to send to session manager to reprocess undelivered packets
      • preProcess

        public static boolean preProcess​(Packet packet,
                                         XMPPResourceConnection session,
                                         NonAuthUserRepository repo,
                                         java.util.Queue<Packet> results,
                                         java.util.Map<java.lang.String,​java.lang.Object> settings,
                                         MessageDeliveryLogic messageProcessor)
        Filters packets before they are processed by processors to filter out delivery-error packets sent to bare jid if other connection is available