Package org.jivesoftware.openfire.user
Interface PresenceEventListener
- All Known Implementing Classes:
IQPEPHandler
public interface PresenceEventListener
Interface to listen for presence events. Use the
PresenceEventDispatcher.addListener(PresenceEventListener)
method to register for events.- Author:
- Gaston Dombiak
-
Method Summary
Modifier and TypeMethodDescriptionvoidavailableSession(ClientSession session, org.xmpp.packet.Presence presence) Notification message indicating that a session that was not available is now available.voidpresenceChanged(ClientSession session, org.xmpp.packet.Presence presence) Notification message indicating that an available session has changed its presence.voidsubscribedToPresence(org.xmpp.packet.JID subscriberJID, org.xmpp.packet.JID authorizerJID) Notification message indicating that a user has successfully subscribed to the presence of another user.voidunavailableSession(ClientSession session, org.xmpp.packet.Presence presence) Notification message indicating that a session that was available is no longer available.voidunsubscribedToPresence(org.xmpp.packet.JID unsubscriberJID, org.xmpp.packet.JID recipientJID) Notification message indicating that a user has unsubscribed to the presence of another user.
-
Method Details
-
availableSession
Notification message indicating that a session that was not available is now available. A session becomes available when an available presence is received. Sessions that are available will have a route in the routing table thus becoming eligible for receiving messages (in particular messages sent to the user bare JID).- Parameters:
session- the session that is now available.presence- the received available presence.
-
presenceChanged
Notification message indicating that an available session has changed its presence. This is the case when the user presence changed the show value (e.g. away, dnd, etc.) or the presence status message.- Parameters:
session- the affected session.presence- the received available presence with the new information.
-
subscribedToPresence
void subscribedToPresence(org.xmpp.packet.JID subscriberJID, org.xmpp.packet.JID authorizerJID) Notification message indicating that a user has successfully subscribed to the presence of another user.- Parameters:
subscriberJID- the user that initiated the subscription.authorizerJID- the user that authorized the subscription.
-
unsubscribedToPresence
void unsubscribedToPresence(org.xmpp.packet.JID unsubscriberJID, org.xmpp.packet.JID recipientJID) Notification message indicating that a user has unsubscribed to the presence of another user.- Parameters:
unsubscriberJID- the user that initiated the unsubscribe request.recipientJID- the recipient user of the unsubscribe request.
-