public class PresenceEventDispatcher extends Object
addListener(PresenceEventListener)
and
removeListener(PresenceEventListener)
to add or remove PresenceEventListener
.Constructor and Description |
---|
PresenceEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
static void |
addListener(PresenceEventListener listener)
Registers a listener to receive events.
|
static void |
availableSession(ClientSession session,
org.xmpp.packet.Presence presence)
Notification message indicating that a session that was not available is now
available.
|
static void |
presenceChanged(ClientSession session,
org.xmpp.packet.Presence presence)
Notification message indicating that an available session has changed its
presence.
|
static void |
removeListener(PresenceEventListener listener)
Unregisters a listener to receive events.
|
static 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.
|
static void |
unavailableSession(ClientSession session,
org.xmpp.packet.Presence presence)
Notification message indicating that a session that was available is no longer
available.
|
static 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.
|
public static void addListener(PresenceEventListener listener)
listener
- the listener.public static void removeListener(PresenceEventListener listener)
listener
- the listener.public static void availableSession(ClientSession session, org.xmpp.packet.Presence presence)
session
- the session that is now available.presence
- the received available presence.public static void unavailableSession(ClientSession session, org.xmpp.packet.Presence presence)
session
- the session that is no longer available.presence
- the received unavailable presence.public static void presenceChanged(ClientSession session, org.xmpp.packet.Presence presence)
session
- the affected session.presence
- the received available presence with the new information.public static void subscribedToPresence(org.xmpp.packet.JID subscriberJID, org.xmpp.packet.JID authorizerJID)
subscriberJID
- the user that initiated the subscription.authorizerJID
- the user that authorized the subscription.public static void unsubscribedToPresence(org.xmpp.packet.JID unsubscriberJID, org.xmpp.packet.JID recipientJID)
unsubscriberJID
- the user that initiated the unsubscribe request.recipientJID
- the recipient user of the unsubscribe request.Copyright © 2003-2008 Jive Software.