Smack

org.jivesoftware.smackx
Class DefaultMessageEventRequestListener

java.lang.Object
  extended by org.jivesoftware.smackx.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.

Author:
Gaston Dombiak

Constructor Summary
DefaultMessageEventRequestListener()
           
 
Method Summary
 void composingNotificationRequested(java.lang.String from, java.lang.String packetID, MessageEventManager messageEventManager)
          Called when a request that the receiver of the message is composing a reply notification is received.
 void deliveredNotificationRequested(java.lang.String from, java.lang.String packetID, MessageEventManager messageEventManager)
          Called when a request for message delivered notification is received.
 void displayedNotificationRequested(java.lang.String from, java.lang.String packetID, MessageEventManager messageEventManager)
          Called when a request for message displayed notification is received.
 void offlineNotificationRequested(java.lang.String from, java.lang.String packetID, MessageEventManager messageEventManager)
          Called when a request that the receiver of the message is offline is received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageEventRequestListener

public DefaultMessageEventRequestListener()
Method Detail

deliveredNotificationRequested

public void deliveredNotificationRequested(java.lang.String from,
                                           java.lang.String packetID,
                                           MessageEventManager messageEventManager)
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.

displayedNotificationRequested

public void displayedNotificationRequested(java.lang.String 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(java.lang.String 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(java.lang.String 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.

Smack

Copyright © 2003-2007 Jive Software.