Class IQHandler

    • Constructor Detail

      • IQHandler

        public IQHandler​(String moduleName)
        Create a basic module with the given name.
        moduleName - The name for the module or null to use the default
    • Method Detail

      • performNoSuchUserCheck

        public boolean performNoSuchUserCheck()
        RFC 6121 8.5.1. "No Such User" specifies how the server must respond to a request made against a non-existing user. The abstract IQ Handler plugin can act accordingly, but allows implementations to override this behavior. By default, Openfire will perform a non-existing user check and act according to the RFC 6121. Subclasses can disable this behavior by overriding this method, and returning 'false'.
        'true' if the Abstract IQ Handler implementation should detect if the IQ request is made against a non-existing user and return an error.
        See Also:
        RFC 6121 8.5.1. "No Such User", OF-880
      • process

        public void process​(org.xmpp.packet.Packet packet)
                     throws PacketException
        Description copied from interface: ChannelHandler
        Process an XMPP packet.
        Specified by:
        process in interface ChannelHandler
        packet - a packet to process.
        PacketException - thrown if the packet is malformed (results in the sender's session being shutdown).
      • handleIQ

        public abstract org.xmpp.packet.IQ handleIQ​(org.xmpp.packet.IQ packet)
                                             throws UnauthorizedException
        Handles the received IQ packet.
        packet - the IQ packet to handle.
        the response to send back.
        UnauthorizedException - if the user that sent the packet is not authorized to request the given operation.
      • getInfo

        public abstract IQHandlerInfo getInfo()
        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.
        The IQHandlerInfo for this handler
      • initialize

        public void initialize​(XMPPServer server)
        Description copied from class: BasicModule

        Initializes the basic module.

        Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.

        Specified by:
        initialize in interface Module
        initialize in class BasicModule
        server - the server hosting this module.