|
Openfire 3.5.0.rc1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.user.PresenceEventDispatcher
public class PresenceEventDispatcher
Dispatches presence events. The following events are supported:
addListener(PresenceEventListener)
and
removeListener(PresenceEventListener)
to add or remove PresenceEventListener
.
Constructor Summary | |
---|---|
PresenceEventDispatcher()
|
Method Summary | |
---|---|
static void |
addListener(PresenceEventListener listener)
Registers a listener to receive events. |
static void |
availableSession(ClientSession session,
Presence presence)
Notification message indicating that a session that was not available is now available. |
static void |
presenceChanged(ClientSession session,
Presence presence)
Notification message indicating that an available session has changed its presence. |
static void |
presencePriorityChanged(ClientSession session,
Presence presence)
Notification message indicating that the presence priority of a session has been modified. |
static void |
removeListener(PresenceEventListener listener)
Unregisters a listener to receive events. |
static void |
subscribedToPresence(JID subscriberJID,
JID authorizerJID)
Notification message indicating that a user has successfully subscribed to the presence of another user. |
static void |
unavailableSession(ClientSession session,
Presence presence)
Notification message indicating that a session that was available is no longer available. |
static void |
unsubscribedToPresence(JID unsubscriberJID,
JID recipientJID)
Notification message indicating that a user has unsubscribed to the presence of another user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PresenceEventDispatcher()
Method Detail |
---|
public static void addListener(PresenceEventListener listener)
listener
- the listener.public static void removeListener(PresenceEventListener listener)
listener
- the listener.public static void availableSession(ClientSession session, Presence presence)
session
- the session that is now available.presence
- the received available presence.public static void unavailableSession(ClientSession session, Presence presence)
session
- the session that is no longer available.presence
- the received unavailable presence.public static void presencePriorityChanged(ClientSession session, Presence presence)
session
- the affected session.presence
- the presence that changed the priority.public static void presenceChanged(ClientSession session, Presence presence)
session
- the affected session.presence
- the received available presence with the new information.public static void subscribedToPresence(JID subscriberJID, JID authorizerJID)
subscriberJID
- the user that initiated the subscription.authorizerJID
- the user that authorized the subscription.public static void unsubscribedToPresence(JID unsubscriberJID, JID recipientJID)
unsubscriberJID
- the user that initiated the unsubscribe request.recipientJID
- the recipient user of the unsubscribe request.
|
Openfire 3.5.0.rc1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |