| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.packet.PEPEvent
public class PEPEvent
Represents XMPP Personal Event Protocol packets.
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 Summary | |
|---|---|
| PEPEvent()Creates a new empty roster exchange package. | |
| PEPEvent(PEPItem item)Creates a new empty roster exchange package. | |
| Method Summary | |
|---|---|
|  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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PEPEvent()
public PEPEvent(PEPItem item)
| Method Detail | 
|---|
public void addPEPItem(PEPItem item)
public String getElementName()
getElementName in interface PacketExtensionpublic String getNamespace()
getNamespace in interface PacketExtensionpublic 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| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||