org.jabber.jabberbeans
Class XMLStreamHeader
java.lang.Object
|
+--org.jabber.jabberbeans.XMLData
|
+--org.jabber.jabberbeans.XMLStreamHeader
- All Implemented Interfaces:
- Packet, java.io.Serializable
- public class XMLStreamHeader
- extends XMLData
- implements Packet
Class which represents an XMLStream header - this names the overall
namespace (format) of the XML data being transmitted and received.
This is also the only packet which isn't really a 'packet' per-se - it
isn't closed. It is instead the header which is sent on first connect
to verify this is indeed a Jabber server, and set the framework for
communication
- See Also:
- Serialized Form
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 |
XMLStreamHeader
public XMLStreamHeader(XMLStreamHeaderBuilder builder)
- Creates a new
XMLStreamHeader
instance.
getXMLNS
public java.lang.String getXMLNS()
getIdentifier
public java.lang.String getIdentifier()
getToAddress
public JID getToAddress()
getFromAddress
public JID getFromAddress()
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 Packet
- Specified by:
appendItem
in class XMLData
- Parameters:
retval
- The StringBuffer
to append to