public class XMLMessage extends Message
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Document |
docContent
The xml content as a Document (null if the content is defined as a string)
|
protected java.lang.String |
strcontent
The xml content as a String (null if the content is defined as a Document)
|
Constructor and Description |
---|
XMLMessage(org.w3c.dom.Document d)
Setup an XMLMessage with the xml document setup as a Document
|
XMLMessage(java.lang.String s)
Setup an XMLMessage with the xml document setup as a string.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
getDocument()
Returns the XMLMessage content as a document.
|
java.lang.String |
getString()
Returns the XMLMessage content as a string.
|
java.lang.String |
toString()
This method returns a string for the XML document set in this message.
|
clone, getConversationID, getReceiver, getSender
protected org.w3c.dom.Document docContent
protected java.lang.String strcontent
public XMLMessage(java.lang.String s)
s
- A valid (i.e. parseable) text XML documentpublic XMLMessage(org.w3c.dom.Document d)
d
- A well-formed DOM objectpublic java.lang.String getString()
public org.w3c.dom.Document getDocument()
public java.lang.String toString()
Fabien Michel, Olivier Gutknecht, Jacques Ferber - November 18 2014