Package org.jivesoftware.smackx.pubsub
Class SimplePayload
java.lang.Object
org.jivesoftware.smackx.pubsub.SimplePayload
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods 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
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
toString
-