com.realtime.xmpp.dom
Class XmppWrapper
java.lang.Object
|
+--com.realtime.xmpp.dom.XmppWrapper
- All Implemented Interfaces:
- XmppQuery, XmppStanza
- public class XmppWrapper
- extends java.lang.Object
- implements XmppQuery
Wrap an Element to make it appear as an XmppQuery.
|
Field Summary |
protected org.dom4j.Element |
m_request
|
|
Method Summary |
java.lang.String |
asXML()
Provide a string representation of the XMPP stanza. |
java.lang.String |
getId()
Provide the 'id' field. |
org.dom4j.Element |
getRoot()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_request
protected org.dom4j.Element m_request
XmppWrapper
public XmppWrapper(org.dom4j.Element e)
getId
public java.lang.String getId()
- Description copied from interface:
XmppQuery
Provide the 'id' field. This is usually used to match an
incoming stanza to the outgoing stanza that triggered it.
- Specified by:
getId in interface XmppQuery
- Returns:
- The contents of the 'id' field, or null
if the field was not provided. Only in rare cases should this be
null. Sending mechanisms are free to associate the next incoming
packet to this one, when the id field is null.
asXML
public java.lang.String asXML()
- Description copied from interface:
XmppStanza
Provide a string representation of the XMPP stanza.
- Specified by:
asXML in interface XmppStanza
- Returns:
- The XML fragment representing this stanza.
getRoot
public org.dom4j.Element getRoot()
Copyright © 2002,2003 Real Time Entertainment Group, LLC. All Rights Reserved.