Class IQMUCvCardHandler
- java.lang.Object
-
- org.jivesoftware.openfire.container.BasicModule
-
- org.jivesoftware.openfire.handler.IQHandler
-
- org.jivesoftware.openfire.muc.spi.IQMUCvCardHandler
-
- All Implemented Interfaces:
ChannelHandler
,Module
public class IQMUCvCardHandler extends IQHandler
Implements the TYPE_IQ vcard-temp protocol, to be used for MUC rooms.This implementation borrows heavily from IQvCardHandler.
- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
- See Also:
IQvCardHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAMESPACE
static SystemProperty<Boolean>
PROPERTY_ENABLED
Controls if MUC occupants can request vCards / avatars.static String
REQUEST_ELEMENT_NAME
static String
RESPONSE_ELEMENT_NAME
-
Fields inherited from class org.jivesoftware.openfire.handler.IQHandler
deliverer, sessionManager
-
-
Constructor Summary
Constructors Constructor Description IQMUCvCardHandler(MultiUserChatService mucService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
calculatePhotoHash(org.dom4j.Element vcard)
IQHandlerInfo
getInfo()
Returns the handler information to help generically handle IQ packets.org.xmpp.packet.IQ
handleIQ(org.xmpp.packet.IQ packet)
Handles the received IQ packet.-
Methods inherited from class org.jivesoftware.openfire.handler.IQHandler
initialize, performNoSuchUserCheck, process, processNoSuchUserCheck
-
Methods inherited from class org.jivesoftware.openfire.container.BasicModule
destroy, getName, start, stop
-
-
-
-
Field Detail
-
PROPERTY_ENABLED
public static SystemProperty<Boolean> PROPERTY_ENABLED
Controls if MUC occupants can request vCards / avatars.
-
REQUEST_ELEMENT_NAME
public static final String REQUEST_ELEMENT_NAME
- See Also:
- Constant Field Values
-
RESPONSE_ELEMENT_NAME
public static final String RESPONSE_ELEMENT_NAME
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IQMUCvCardHandler
public IQMUCvCardHandler(MultiUserChatService mucService)
-
-
Method Detail
-
handleIQ
public org.xmpp.packet.IQ handleIQ(org.xmpp.packet.IQ packet) throws PacketException
Description copied from class:IQHandler
Handles the received IQ packet.- Specified by:
handleIQ
in classIQHandler
- Parameters:
packet
- the IQ packet to handle.- Returns:
- the response to send back.
- Throws:
PacketException
-
calculatePhotoHash
public static String calculatePhotoHash(org.dom4j.Element vcard)
-
getInfo
public IQHandlerInfo getInfo()
Description copied from class:IQHandler
Returns the handler information to help generically handle IQ packets. IQHandlers that aren't local server iq handlers (e.g. chatbots, transports, etc) returnnull
.
-
-