Class 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
    • 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 class IQHandler
        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) return null.
        Specified by:
        getInfo in class IQHandler
        Returns:
        The IQHandlerInfo for this handler