org.jivesoftware.smackx.packet
Class PEPPubSub
java.lang.Object
   org.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.Packet
       org.jivesoftware.smack.packet.IQ
org.jivesoftware.smack.packet.IQ
           org.jivesoftware.smackx.packet.PEPPubSub
org.jivesoftware.smackx.packet.PEPPubSub
- public class PEPPubSub 
- extends IQ
Represents XMPP PEP/XEP-163 pubsub packets.
 
 The 'http://jabber.org/protocol/pubsub' namespace  is used to publish personal events items from one client 
 to subscribed clients (See XEP-163).
- Author:
- Jeff Williams
 
| Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ | 
| IQ.Type | 
 
 
 
 
| Method Summary | 
|  String | getChildElementXML()Returns the XML representation of a Personal Event Publish according the specification.
 | 
|  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.
 | 
 
 
| Methods inherited from class org.jivesoftware.smack.packet.Packet | 
| addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo | 
 
 
PEPPubSub
public PEPPubSub(PEPItem item)
- Creates a new PubSub.
 
getElementName
public String getElementName()
- Returns the XML element name of the extension sub-packet root element.
 Always returns "x"
 
- 
- Returns:
- the XML element name of the packet extension.
 
getNamespace
public String getNamespace()
- Returns the XML namespace of the extension sub-packet root element.
 According the specification the namespace is always "jabber:x:roster"
 (which is not to be confused with the 'jabber:iq:roster' namespace
 
- 
- Returns:
- the XML namespace of the packet extension.
 
getChildElementXML
public String getChildElementXML()
- Returns the XML representation of a Personal Event Publish according the specification.
 
 Usually the XML representation will be inside of a Message XML representation like
 in the following example:
 
 <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>
 
 
- 
- Specified by:
- getChildElementXMLin class- IQ
 
- 
- Returns:
- the child element section of the IQ XML.
 
Copyright © 2003-2007 Jive Software.