org.jabber.jabberbeans.util
Class KeepAlive.KeepAlivePacket
java.lang.Object
|
+--org.jabber.jabberbeans.XMLData
|
+--org.jabber.jabberbeans.util.KeepAlive.KeepAlivePacket
- All Implemented Interfaces:
- Packet, java.io.Serializable
- Enclosing class:
- KeepAlive
- public class KeepAlive.KeepAlivePacket
- extends XMLData
- implements Packet
KeepAlivePacket is rather simple - instead of being XML, it is
just a space. You can send KeepAlivePackets at a regular interval
to make sure a connection doesn't expire. This feature is totally
optional.
- See Also:
- Serialized Form
Method Summary |
void |
appendItem(java.lang.StringBuffer retval)
appendItem adds the XML for a child 'element'
to a StringBuffer |
java.lang.String |
toString()
toString for this class is a serializer for the data
contained in the object to an equivalent snippet of XML
stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KeepAlive.KeepAlivePacket
public KeepAlive.KeepAlivePacket()
toString
public java.lang.String toString()
- toString for this class is a serializer for the data
contained in the object to an equivalent snippet of XML
stream.
- Specified by:
toString
in interface Packet
- Overrides:
toString
in class XMLData
- Returns:
- a
String
value which contains the XML
representation of this object
appendItem
public void appendItem(java.lang.StringBuffer retval)
appendItem
adds the XML for a child 'element'
to a StringBuffer
- Specified by:
appendItem
in interface Packet
- Specified by:
appendItem
in class XMLData
- Parameters:
retval
- a StringBuffer
value