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 |
---|---|
java.lang.String |
getChildElementXML()
Returns the XML representation of a Personal Event Publish according the specification.
|
java.lang.String |
getElementName()
Returns the XML element name of the extension sub-packet root element.
|
java.lang.String |
getNamespace()
Returns the XML namespace of the extension sub-packet root element.
|
createErrorResponse, createResultIQ, getType, setType, toXML
addCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toString
public PEPPubSub(PEPItem item)
public java.lang.String getElementName()
public java.lang.String getNamespace()
public java.lang.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