public class PEPEvent extends Object implements ExtensionElement
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 |
|---|
PEPEvent()
Creates a new empty roster exchange package.
|
PEPEvent(PEPItem item)
Creates a new empty roster exchange package.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPEPItem(PEPItem item) |
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 PEPEvent()
public void addPEPItem(PEPItem item)
public String getElementName()
getElementName in interface NamedElementpublic String getNamespace()
getNamespace in interface ExtensionElementpublic 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>