org.jabber.jabberbeans.Extension
Class IQPrivate
java.lang.Object
|
+--org.jabber.jabberbeans.XMLData
|
+--org.jabber.jabberbeans.Extension.IQPrivate
- 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.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- David Waite
<dwaite@jabber.com>, $Author: lucky $
- See Also:
- Serialized Form
Field Summary |
private Extension |
data
Internal Extension which is to be stored, or is being
recalled from the server. |
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 java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
data
private Extension data
- Internal
Extension
which is to be stored, or is being
recalled from the server.
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.
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
.
- Overrides:
- appendItem in class XMLData
- Parameters:
retval
- The StringBuffer
to append to