Package tigase.xmpp.impl
Class MessageDeliveryLogic
java.lang.Object
tigase.xmpp.impl.MessageDeliveryLogic
- All Implemented Interfaces:
MessageDeliveryProviderIfc
@Bean(name="message-delivery-logic",
parent=SessionManager.class,
active=true,
exportable=true)
public class MessageDeliveryLogic
extends Object
implements MessageDeliveryProviderIfc
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
static Predicate<XMPPResourceConnection>
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMethod returns list of XMPPResourceConnections to which message should be delivered for session passes as parameter if message was sent to bare JIDMethod returns list of JIDs to which message should be delivered for session passes as parameter if message was sent to bare JIDvoid
handleDelivery
(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String, Object> settings) boolean
Method returns true if there is at least one XMPPResourceConnection which is allowed to receive message for XMPPResourceConnectionboolean
preProcessFilter
(Packet packet, XMPPResourceConnection session)
-
Field Details
-
ELEM_NAME
- See Also:
-
XMLNS
- See Also:
-
VIABLE_FOR_MESSAGE_DELIVERY
-
-
Constructor Details
-
MessageDeliveryLogic
public MessageDeliveryLogic()
-
-
Method Details
-
handleDelivery
public void handleDelivery(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String, Object> settings) throws XMPPException- Throws:
XMPPException
-
getConnectionsForMessageDelivery
public List<XMPPResourceConnection> getConnectionsForMessageDelivery(XMPPResourceConnection session) throws NotAuthorizedException Method returns list of XMPPResourceConnections to which message should be delivered for session passes as parameter if message was sent to bare JID- Throws:
NotAuthorizedException
-
getJIDsForMessageDelivery
public Set<JID> getJIDsForMessageDelivery(XMPPResourceConnection session) throws NotAuthorizedException Method returns list of JIDs to which message should be delivered for session passes as parameter if message was sent to bare JID- Specified by:
getJIDsForMessageDelivery
in interfaceMessageDeliveryProviderIfc
- Throws:
NotAuthorizedException
-
hasConnectionForMessageDelivery
Method returns true if there is at least one XMPPResourceConnection which is allowed to receive message for XMPPResourceConnection- Specified by:
hasConnectionForMessageDelivery
in interfaceMessageDeliveryProviderIfc
-
preProcessFilter
-