public final class IQ extends AbstractIQ implements ServerStreamElement
<iq/> element for the server namespace ('jabber:server').AbstractIQ.Type| Constructor and Description |
|---|
IQ(AbstractIQ.Type type,
Object extension)
Creates an IQ stanza with the given type and extension.
|
IQ(AbstractIQ.Type type,
Object extension,
String id)
Creates an IQ stanza with the given id, type and extension.
|
IQ(Jid to,
AbstractIQ.Type type,
Object extension)
Creates an IQ stanza with the given receiver, type and extension.
|
IQ(Jid to,
AbstractIQ.Type type,
Object extension,
String id)
Creates an IQ stanza with the given receiver, id, type and extension.
|
IQ(Jid to,
AbstractIQ.Type type,
Object extension,
String id,
Jid from,
String language,
StanzaError error)
Creates an IQ stanza with the given receiver, id, type, extension and error.
|
| Modifier and Type | Method and Description |
|---|---|
IQ |
createError(Condition condition)
Creates an error response for this stanza.
|
IQ |
createError(StanzaError error)
Creates an error response for this stanza.
|
IQ |
createResult()
Creates a result IQ stanza, i.e. it uses the same id as this IQ, sets the type to 'result' and switches the 'to' and 'from' attribute.
|
IQ |
createResult(Object extension)
Creates a result IQ stanza with a payload, i.e. it uses the same id as this IQ, sets the type to 'result' and switches the 'to' and 'from' attribute.
|
IQ |
withFrom(Jid from)
Creates a copy of this stanza and adds a from attribute to it.
|
getExtension, getType, isRequest, isResponse, setExtension, toStringpublic IQ(AbstractIQ.Type type, Object extension)
type - The type.extension - The extension.public IQ(AbstractIQ.Type type, Object extension, String id)
type - The type.extension - The extension.id - The id.public IQ(Jid to, AbstractIQ.Type type, Object extension)
to - The receiver.type - The type.extension - The extension.public IQ(Jid to, AbstractIQ.Type type, Object extension, String id)
to - The receiver.type - The type.extension - The extension.id - The id.public IQ(Jid to, AbstractIQ.Type type, Object extension, String id, Jid from, String language, StanzaError error)
to - The receiver.type - The type.extension - The extension.id - The id.from - The sender.language - The language.error - The error.public final IQ createResult()
public final IQ createResult(Object extension)
extension - The extension.public final IQ createError(StanzaError error)
StanzacreateError in class Stanzaerror - The error which is appended to the stanza.Stanza.getError()public final IQ createError(Condition condition)
StanzacreateError in class Stanzacondition - The error condition which is appended to the stanza.Stanza.getError()Copyright © 2014–2015 XMPP.rocks. All rights reserved.