public class SimplePayload extends Object implements PacketExtension
PayloadItem.getPayload()
. It simply
stores the XML payload as a string.Constructor and Description |
---|
SimplePayload(String elementName,
String namespace,
String xmlPayload)
Construct a SimplePayload object with the specified element name,
namespace and content.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
String |
toString() |
String |
toXML()
Returns the XML representation of the PacketExtension.
|
public SimplePayload(String elementName, String namespace, String xmlPayload)
elementName
- The root element name (of the payload)namespace
- The namespace of the payload, null if there is nonexmlPayload
- The payload datapublic String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension