|
Openfire 3.5.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.entitycaps.EntityCapabilitiesManager
public class EntityCapabilitiesManager
Implements server side mechanics for XEP-0115: "Entity Capabilities" Version 1.4 In particular, EntityCapabilitiesManager is useful for processing "filtered-notifications" for use with Pubsub (XEP-0060) for contacts that may not want to receive notifications for all payload types. The server's role in managing Entity Capabilities is to cache previously encountered entity capabilities for XMPP clients supporting the same identities and features. If the server has not seen a particular combination of identities and features, a Discover Information query is sent to that client and its reply is cached for future use by clients sharing those same entity capabilities.
Method Summary | |
---|---|
void |
answerTimeout(String packetId)
Notification method indicating that a predefined time has passed without receiving answer to a previously sent IQ packet. |
EntityCapabilities |
getEntityCapabilities(JID jid)
Returns the entity capabilities for a specific JID. |
static EntityCapabilitiesManager |
getInstance()
Returns the unique instance of this class. |
void |
process(Presence packet)
|
void |
receivedAnswer(IQ packet)
Notification method indicating that a previously sent IQ packet has been answered. |
void |
userCreated(User user,
Map<String,Object> params)
A user was created. |
void |
userDeleting(User user,
Map<String,Object> params)
A user is being deleted. |
void |
userModified(User user,
Map<String,Object> params)
A user's name, email, or an extended property was changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EntityCapabilitiesManager getInstance()
public void process(Presence packet)
public void answerTimeout(String packetId)
IQResultListener
answerTimeout
in interface IQResultListener
packetId
- The packet id of a previously sent IQ packet that wasn't answered.public void receivedAnswer(IQ packet)
IQResultListener
receivedAnswer
in interface IQResultListener
packet
- the IQ packet answering a previously sent IQ packet.public EntityCapabilities getEntityCapabilities(JID jid)
jid
- the full JID of entity
public void userDeleting(User user, Map<String,Object> params)
UserEventListener
userDeleting
in interface UserEventListener
user
- the user.params
- event parameters.public void userCreated(User user, Map<String,Object> params)
UserEventListener
userCreated
in interface UserEventListener
user
- the user.params
- event parameters.public void userModified(User user, Map<String,Object> params)
UserEventListener
userModified
in interface UserEventListener
user
- the user.params
- event parameters.
|
Openfire 3.5.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |