org.jabber.jabberbeans.Extension
Class IQPrivate

java.lang.Object
  |
  +--org.jabber.jabberbeans.XMLData
        |
        +--org.jabber.jabberbeans.Extension.IQPrivate
All Implemented Interfaces:
Extension, QueryExtension, java.io.Serializable

public class IQPrivate
extends XMLData
implements QueryExtension

An IQPrivate Extension object could be considered rather odd - all it does is hold another, custom extension. The idea is that you can store XML data on the server, and recall it according to XML namespace. A custom Extension holds the data, and will require a registered handler for parsing it back out, same as all other extensions.

See Also:
Serialized Form

Constructor Summary
IQPrivate(Extension privateData)
          Construct a new IQPrivate Extension, based around another custom Extension.
 
Method Summary
 void appendItem(java.lang.StringBuffer retval)
          appendItem appends the XML representation of the current packet data to the specified StringBuffer.
 Extension getPrivateData()
          Fetch the internal Extension from within this IQPrivate object
 
Methods inherited from class org.jabber.jabberbeans.XMLData
appendAttrib, appendAttrib, appendChild, appendChild, escapeString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jabber.jabberbeans.Extension.Extension
toString
 

Constructor Detail

IQPrivate

public IQPrivate(Extension privateData)
Construct a new IQPrivate Extension, based around another custom Extension.

Parameters:
privateData - Extension to be stored or being retrieved from the server.
Method Detail

getPrivateData

public Extension getPrivateData()
Fetch the internal Extension from within this IQPrivate object

Returns:
internal Extension from this object.

appendItem

public 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 Extension
Specified by:
appendItem in class XMLData
Parameters:
retval - The StringBuffer to append to