public abstract class AbstractIQHandler extends Object implements IQHandler
If an extension is disabled, IQs with this extension are automatically responded to with <service-unavailable.
If the extension is known, but the request contains a wrong type (e.g. 'set' instead of 'get') this manager automatically responds with a <bad-request/> error.
| Modifier and Type | Method and Description |
|---|---|
IQ |
handleRequest(IQ iq)
|
public final IQ handleRequest(IQ iq)
IQHandlerget or set.
The returned IQ must be of type result or error.
If 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.
Use IQ.createResult() or IQ.createError(rocks.xmpp.core.stanza.model.StanzaError) to generate the response IQ (i.e. an IQ with the same id).
handleRequest in interface IQHandleriq - The inbound IQ stanza.Copyright © 2014–2016 XMPP.rocks. All rights reserved.