Package org.jivesoftware.smackx.pubsub
Class SimplePayload
java.lang.Object
org.jivesoftware.smackx.pubsub.SimplePayload
- All Implemented Interfaces:
Element
,NamedElement
,XmlElement
,XmlLangElement
The default payload representation for
PayloadItem.getPayload()
. It simply
stores the XML payload as a string.-
Constructor Summary
ConstructorDescriptionSimplePayload
(String xmlPayload) Construct aSimplePayload
object with the specified element name, namespace and content. -
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.Returns the root element XML namespace.toString()
toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Constructor Details
-
SimplePayload
Construct aSimplePayload
object with the specified element name, namespace and content. The content must be well formed XML.- Parameters:
xmlPayload
- The payload data
-
-
Method Details
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
toXML
-
toString
-