public class PEPPubSub extends IQ
The 'http://jabber.org/protocol/pubsub' namespace is used to publish personal events items from one client to subscribed clients (See XEP-163).
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
Constructor and Description |
---|
PEPPubSub(PEPItem item)
Creates a new PubSub.
|
Modifier and Type | Method and Description |
---|---|
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.
|
createErrorResponse, createResultIQ, getType, setType, toXML
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo
public PEPPubSub(PEPItem item)
public String getElementName()
public String getNamespace()
public String getChildElementXML()
<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>
getChildElementXML
in class IQ
Copyright © 2003-2007 Jive Software.