org.eclipse.ecf.presence
Interface ISubscribeListener


public interface ISubscribeListener

Listener for handling notifications of subscribe/unsubscribe requests. Implementers of this interface must be registered via IPresenceContainerAdapter.addSubscribeListener(ISubscribeListener)

See Also:
IPresenceContainerAdapter

Method Summary
 void handleSubscribed(ID fromID, IPresence presence)
          Receive subscribed notification.
 void handleSubscribeRequest(ID fromID, IPresence presence)
          Receive subscribe request.
 void handleUnsubscribed(ID fromID, IPresence presence)
          Receive unsubscribed notification.
 void handleUnsubscribeRequest(ID fromID, IPresence presence)
          Receive unsubscribe request.
 

Method Detail

handleSubscribeRequest

void handleSubscribeRequest(ID fromID,
                            IPresence presence)
Receive subscribe request.

Parameters:
fromID - the sender of the subscribe request
presence - the presence information associated with the user making the request

handleUnsubscribeRequest

void handleUnsubscribeRequest(ID fromID,
                              IPresence presence)
Receive unsubscribe request.

Parameters:
fromID - the sender of the unsubscribe request
presence - the presence information associated with the user making the request

handleSubscribed

void handleSubscribed(ID fromID,
                      IPresence presence)
Receive subscribed notification.

Parameters:
fromID - the sender of the subscribed notification
presence - the presence information associated with the user sending the notification

handleUnsubscribed

void handleUnsubscribed(ID fromID,
                        IPresence presence)
Receive unsubscribed notification.

Parameters:
fromID - the sender of the unsubscribed notification
presence - the presence information associated with the user sending the notification