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)
Creates an IQ stanza with the given type.
|
IQ(AbstractIQ.Type type,
Object extension)
Creates an IQ stanza with the given 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,
String id,
AbstractIQ.Type type,
Object extension)
Creates an IQ stanza with the given receiver, id, type and extension.
|
IQ(String id,
AbstractIQ.Type type)
Creates an IQ stanza with the given id and type.
|
IQ(String id,
AbstractIQ.Type type,
Object extension)
Creates an IQ stanza with the given id, type and extension.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getExtension, getType, isRequest, isResponse, setExtension, toStringcreateError, getError, getFrom, getId, getLanguage, getTo, setError, setFrom, setId, setLanguage, setTopublic IQ(AbstractIQ.Type type)
type - The type.public IQ(AbstractIQ.Type type, Object extension)
type - The type.extension - The extension.public IQ(String id, AbstractIQ.Type type)
AbstractIQ.Type.SET or AbstractIQ.Type.GET, you will have to also set an extension.id - The id.type - The type.public IQ(String id, AbstractIQ.Type type, Object extension)
id - The id.type - The type.extension - The extension.public IQ(Jid to, AbstractIQ.Type type, Object extension)
to - The receiver.type - The type.extension - The extension.public IQ(Jid to, String id, AbstractIQ.Type type, Object extension)
to - The receiver.id - The id.type - The type.extension - The extension.public final IQ createResult()
public final IQ createError(StanzaError error)
StanzacreateError in class Stanzaerror - The error which is appended to the stanza.Stanza.getError(),
Stanza.createError(Stanza, StanzaError)Copyright © 2014 XMPP.rocks. All rights reserved.