org.jabber.jabberbeans
Class InfoQuery
java.lang.Object
|
+--org.jabber.jabberbeans.XMLData
|
+--org.jabber.jabberbeans.ContentPacket
|
+--org.jabber.jabberbeans.InfoQuery
- All Implemented Interfaces:
- Extension, Packet, java.io.Serializable
- public class InfoQuery
- extends ContentPacket
- implements java.io.Serializable
An InfoQuery
object represents a single IQ packet, which is
used to set and query information between the client and server.
e.g.:
<iq type="get|set|result|error">
<query xmlns="........">
information custom to the namespace..
</query>
<iq>
- See Also:
ContentPacket
,
Serialized Form
Method Summary |
void |
appendItem(java.lang.StringBuffer retval)
appendItem appends the XML representation of the
current packet data to the specified StringBuffer . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jabber.jabberbeans.Packet |
toString |
InfoQuery
public InfoQuery(InfoQueryBuilder builder)
throws java.lang.InstantiationException
- Creates a new
InfoQuery
instance. Note that because of
the complexity of the InfoQuery object and because the object is
immutable after creation, a builder object is needed in order to
construct this object.
- Parameters:
builder
- an InfoQueryBuilder
holding appropriate
values
- Throws:
java.lang.InstantiationException
- if the values supplied by the
InfoQueryBuilder are not sufficient to creaate a 'correctly-formed'
InfoQuery packet.
appendItem
public final void appendItem(java.lang.StringBuffer retval)
appendItem
appends the XML representation of the
current packet data to the specified StringBuffer
.
- Specified by:
appendItem
in interface Packet
- Specified by:
appendItem
in class XMLData
- Parameters:
retval
- The StringBuffer
to append to