public class C2SDeliveryErrorProcessor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ELEM_NAME |
static String |
XMLNS |
Constructor and Description |
---|
C2SDeliveryErrorProcessor() |
Modifier and Type | Method and Description |
---|---|
static void |
filter(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results,
tigase.xmpp.JID toIgnore)
Filters packets created by processors to remove delivery-error payload
|
static boolean |
isDeliveryError(Packet packet)
Checks if packet is delivery-error packet
|
static Packet |
makeDeliveryError(Packet packet)
Creates delivery-error packets to send to session manager to reprocess
undelivered packets
|
static boolean |
preProcess(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results,
Map<String,Object> settings)
Filters packets before they are processed by processors to filter out delivery-error
packets sent to bare jid if other connection is available
|
public static final String ELEM_NAME
public static final String XMLNS
public static void filter(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, tigase.xmpp.JID toIgnore)
packet
- session
- repo
- results
- toIgnore
- public static boolean preProcess(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings)
packet
- session
- repo
- results
- settings
- public static boolean isDeliveryError(Packet packet)
packet
- Copyright © 2014 "Tigase, Inc.". All rights reserved.