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