public abstract class PEPItem extends Object implements PacketExtension
The 'http://jabber.org/protocol/pubsub#event' namespace is used to publish personal events items from one client to subscribed clients (See XEP-163).
Constructor and Description |
---|
PEPItem(String id)
Creates a new PEPItem.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the XML element name of the extension sub-packet root element.
|
String |
getNamespace()
Returns the XML namespace of the extension sub-packet root element.
|
String |
toXML()
Returns the XML representation of a Personal Event Publish according the specification.
|
public String getElementName()
getElementName
in interface PacketExtension
public String getNamespace()
getNamespace
in interface PacketExtension
public String toXML()
<message id="MlIpV-4" to="gato1@gato.home" from="gato3@gato.home/Smack"> <subject>Any subject you want</subject> <body>This message contains roster items.</body> <x xmlns="jabber:x:roster"> <item jid="gato1@gato.home"/> <item jid="gato2@gato.home"/> </x> </message>
toXML
in interface PacketExtension