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).
IQ.IQChildElementXmlStringBuilder, IQ.Type| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
IQ_ELEMENT, QUERY_ELEMENTDEFAULT_LANGUAGE, ITEM, language, TEXT| Constructor and Description |
|---|
PEPPubSub(PEPItem item)
Creates a new PubSub.
|
| Modifier and Type | Method and Description |
|---|---|
protected IQ.IQChildElementXmlStringBuilder |
getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder buf)
Returns the XML representation of a Personal Event Publish according the specification.
|
createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, isRequestIQ, setType, toXMLaddCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, overrideExtension, removeExtension, removeExtension, setError, setFrom, setLanguage, setPacketID, setStanzaId, setTo, toStringpublic static final String ELEMENT
public static final String NAMESPACE
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder buf)
<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>
getIQChildElementBuilder in class IQbuf - a pre-created builder which already has the child element and the 'xmlns' attribute set.