org.jabber.jabberbeans.Extension
Class IQVersion
java.lang.Object
|
+--org.jabber.jabberbeans.XMLData
|
+--org.jabber.jabberbeans.Extension.IQVersion
- public class IQVersion
- extends XMLData
- implements QueryExtension
An IQVersion
Extension object is used to query for the
version of a remote client. Provided is the name and version of the used
software, as well as the OS which the software is executing.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- David Waite
<dwaite@jabber.com>, $Author: lucky $
- See Also:
- Serialized Form
Field Summary |
private java.lang.String |
name
The name of the client software |
private java.lang.String |
OS
A report of the OS on which the software is running |
private java.lang.String |
version
The version of the client software |
Method Summary |
void |
appendItem(java.lang.StringBuffer retval)
appendItem converts this packet to XML, either an
<agent> block in a jabber:iq:agents extension, or its own
jabber:iq:agent extension. |
java.lang.String |
getName()
get the name of the client software. |
java.lang.String |
getOS()
get the OS string for the client software. |
java.lang.String |
getVersion()
get a version string for the client software. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
name
private java.lang.String name
- The name of the client software
version
private java.lang.String version
- The version of the client software
OS
private java.lang.String OS
- A report of the OS on which the software is running
IQVersion
public IQVersion(IQVersionBuilder builder)
- build an IQVersion object based on an IQVersionBuilder object
- Parameters:
builder
- IQVersionBuilder from which this object will be based
getName
public java.lang.String getName()
- get the name of the client software.
- Returns:
String
holding the name of the client software
getVersion
public java.lang.String getVersion()
- get a version string for the client software.
- Returns:
String
holding a representation of the client
software version
getOS
public java.lang.String getOS()
- get the OS string for the client software.
- Returns:
String
holding the OS value for the client
software
appendItem
public void appendItem(java.lang.StringBuffer retval)
appendItem
converts this packet to XML, either an
<agent> block in a jabber:iq:agents extension, or its own
jabber:iq:agent extension. It then appends it to a StringBuffer.
- Overrides:
- appendItem in class XMLData
- Parameters:
retval
- The StringBuffer
to append to