Class C2SDeliveryErrorProcessor


public class C2SDeliveryErrorProcessor extends 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
  • Field Details

  • Constructor Details

    • C2SDeliveryErrorProcessor

      public C2SDeliveryErrorProcessor()
  • Method Details

    • filter

      public static void filter(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, JID toIgnore)
      Filters packets created by processors to remove delivery-error payload
    • 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, 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, Queue<Packet> results, Map<String,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