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
ConstructorsConstructorDescriptionSimplePayload(String xmlPayload) Construct aSimplePayloadobject 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, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Constructor Details
-
SimplePayload
Construct aSimplePayloadobject 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:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
toXML
-
toString
-