public abstract class IQ extends Packet
IQ packets can contain a single child element that exists in a specific XML namespace. The combination of the element name and namespace determines what type of IQ packet it is. Some example IQ subpacket snippets:
Modifier and Type | Class and Description |
---|---|
static class |
IQ.Type
A class to represent the type of the IQ packet.
|
ID_NOT_AVAILABLE
Constructor and Description |
---|
IQ() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
IQ.Type |
getType()
Returns the type of the IQ packet.
|
void |
setType(IQ.Type type)
Sets the type of the IQ packet.
|
java.lang.String |
toXML()
Returns the packet as XML.
|
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
public IQ.Type getType()
public void setType(IQ.Type type)
type
- the type of the IQ packet.public java.lang.String toXML()
Packet
public abstract java.lang.String getChildElementXML()
Extensions of this class must override this method.
Copyright © 2003 Jive Software.