public class EntityCapabilitiesManager extends Object implements org.xmpp.component.IQResultListener, UserEventListener
Modifier and Type | Method and Description |
---|---|
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.
|
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 entitypublic 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.Copyright © 2003-2008 Jive Software.