|
Openfire 3.9.3 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)
|
static String |
generateVerHash(org.xmpp.packet.IQ packet,
String algorithm)
Generates a 'ver' hash attribute used in validation to help prevent poisoning of entity capabilities information. |
EntityCapabilities |
getEntityCapabilities(org.xmpp.packet.JID jid)
Returns the entity capabilities for a specific JID. |
static EntityCapabilitiesManager |
getInstance()
Returns the unique instance of this class. |
void |
process(org.xmpp.packet.Presence packet)
|
void |
receivedAnswer(org.xmpp.packet.IQ packet)
|
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(org.xmpp.packet.Presence packet)
public static String generateVerHash(org.xmpp.packet.IQ packet, String algorithm)
packet
- IQ reply to the entity cap request.algorithm
- The hashing algorithm to use (e.g. SHA-1)
The value of the 'ver' attribute is generated according to the method
outlined in XEP-0115.
public void answerTimeout(String packetId)
answerTimeout
in interface org.xmpp.component.IQResultListener
public void receivedAnswer(org.xmpp.packet.IQ packet)
receivedAnswer
in interface org.xmpp.component.IQResultListener
public EntityCapabilities getEntityCapabilities(org.xmpp.packet.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.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |