@FunctionalInterface public interface IQHandler
8.2.3. IQ Semantics
An entity that receives an IQ request of type “get” or “set” MUST reply with an IQ response of type “result” or “error”. The response MUST preserve the ‘id’ attribute of the request (or be empty if the generated stanza did not include an ‘id’ attribute).
The returned IQ must be of type
null is returned, no response is returned to the requester and you must take responsibility of sending a response manually. However, this approach is not recommended.
IQ.createError(rocks.xmpp.core.stanza.model.StanzaError) to generate the response IQ (i.e. an IQ with the same id).
iq- The inbound IQ stanza.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.