Package org.jivesoftware.smackx.xevent
Class DefaultMessageEventRequestListener
- java.lang.Object
-
- org.jivesoftware.smackx.xevent.DefaultMessageEventRequestListener
-
- All Implemented Interfaces:
MessageEventRequestListener
public class DefaultMessageEventRequestListener extends Object implements MessageEventRequestListener
Default implementation of the MessageEventRequestListener interface.This class automatically sends a delivered notification to the sender of the message if the sender has requested to be notified when the message is delivered.
-
-
Constructor Summary
Constructors Constructor Description DefaultMessageEventRequestListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomposingNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)Called when a request that the receiver of the message is composing a reply notification is received.voiddeliveredNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)Called when a request for message delivered notification is received.voiddisplayedNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)Called when a request for message displayed notification is received.voidofflineNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)Called when a request that the receiver of the message is offline is received.
-
-
-
Constructor Detail
-
DefaultMessageEventRequestListener
public DefaultMessageEventRequestListener()
-
-
Method Detail
-
deliveredNotificationRequested
public void deliveredNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager) throws SmackException.NotConnectedException, InterruptedException
Description copied from interface:MessageEventRequestListenerCalled when a request for message delivered notification is received.- Specified by:
deliveredNotificationRequestedin interfaceMessageEventRequestListener- Parameters:
from- the user that sent the notification.packetID- the id of the message that was sent.messageEventManager- the messageEventManager that fired the listener.- Throws:
SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.
-
displayedNotificationRequested
public void displayedNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)
Description copied from interface:MessageEventRequestListenerCalled when a request for message displayed notification is received.- Specified by:
displayedNotificationRequestedin interfaceMessageEventRequestListener- Parameters:
from- the user that sent the notification.packetID- the id of the message that was sent.messageEventManager- the messageEventManager that fired the listener.
-
composingNotificationRequested
public void composingNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)
Description copied from interface:MessageEventRequestListenerCalled when a request that the receiver of the message is composing a reply notification is received.- Specified by:
composingNotificationRequestedin interfaceMessageEventRequestListener- Parameters:
from- the user that sent the notification.packetID- the id of the message that was sent.messageEventManager- the messageEventManager that fired the listener.
-
offlineNotificationRequested
public void offlineNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)
Description copied from interface:MessageEventRequestListenerCalled when a request that the receiver of the message is offline is received.- Specified by:
offlineNotificationRequestedin interfaceMessageEventRequestListener- Parameters:
from- the user that sent the notification.packetID- the id of the message that was sent.messageEventManager- the messageEventManager that fired the listener.
-
-