Class DefaultMessageEventRequestListener

  • All Implemented Interfaces:
    MessageEventRequestListener

    public class DefaultMessageEventRequestListener
    extends java.lang.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 Detail

      • DefaultMessageEventRequestListener

        public DefaultMessageEventRequestListener()
    • Method Detail

      • deliveredNotificationRequested

        public void deliveredNotificationRequested​(org.jxmpp.jid.Jid from,
                                                   java.lang.String packetID,
                                                   MessageEventManager messageEventManager)
                                            throws org.jivesoftware.smack.SmackException.NotConnectedException,
                                                   java.lang.InterruptedException
        Description copied from interface: MessageEventRequestListener
        Called when a request for message delivered notification is received.
        Specified by:
        deliveredNotificationRequested in interface MessageEventRequestListener
        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:
        org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
        java.lang.InterruptedException - if the calling thread was interrupted.
      • displayedNotificationRequested

        public void displayedNotificationRequested​(org.jxmpp.jid.Jid from,
                                                   java.lang.String packetID,
                                                   MessageEventManager messageEventManager)
        Description copied from interface: MessageEventRequestListener
        Called when a request for message displayed notification is received.
        Specified by:
        displayedNotificationRequested in interface MessageEventRequestListener
        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​(org.jxmpp.jid.Jid from,
                                                   java.lang.String packetID,
                                                   MessageEventManager messageEventManager)
        Description copied from interface: MessageEventRequestListener
        Called when a request that the receiver of the message is composing a reply notification is received.
        Specified by:
        composingNotificationRequested in interface MessageEventRequestListener
        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​(org.jxmpp.jid.Jid from,
                                                 java.lang.String packetID,
                                                 MessageEventManager messageEventManager)
        Description copied from interface: MessageEventRequestListener
        Called when a request that the receiver of the message is offline is received.
        Specified by:
        offlineNotificationRequested in interface MessageEventRequestListener
        Parameters:
        from - the user that sent the notification.
        packetID - the id of the message that was sent.
        messageEventManager - the messageEventManager that fired the listener.