|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.pubsub.SimplePayload
public class SimplePayload
The default payload representation for Item#getPayload(). It simply
stores the XML payload as a string.
| Constructor Summary | |
|---|---|
SimplePayload(String elementName,
String namespace,
String xmlPayload)
Construct a SimplePayload object with the specified element name, namespace and content. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 data| Method Detail |
|---|
public String getElementName()
PacketExtension
getElementName in interface PacketExtensionpublic String getNamespace()
PacketExtension
getNamespace in interface PacketExtensionpublic String toXML()
PacketExtension
toXML in interface PacketExtensionpublic String toString()
toString in class Object
|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||