public class PubSub extends IQ
IQ packet. This is the topmost
element of all pubsub requests and replies as defined in the Publish-Subscribe
specification.IQ.IQChildElementXmlStringBuilder, IQ.Type| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
IQ_ELEMENT, QUERY_ELEMENTDEFAULT_LANGUAGE, ITEM, language, TEXT| Constructor and Description |
|---|
PubSub() |
PubSub(org.jxmpp.jid.Jid to,
IQ.Type type,
PubSubNamespace ns) |
PubSub(PubSubNamespace ns) |
| Modifier and Type | Method and Description |
|---|---|
static PubSub |
createPubsubPacket(org.jxmpp.jid.Jid to,
IQ.Type type,
ExtensionElement extension,
PubSubNamespace ns) |
<PE extends ExtensionElement> |
getExtension(PubSubElementType elem) |
protected IQ.IQChildElementXmlStringBuilder |
getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder xml)
Returns the XML representation of a pubsub element according the specification.
|
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, initializeAsResultFor, initialzeAsResultFor, isRequestIQ, setType, toString, toXMLaddCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setFrom, setLanguage, setPacketID, setStanzaId, setStanzaId, setTo, setTopublic static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public PubSub()
public PubSub(PubSubNamespace ns)
public PubSub(org.jxmpp.jid.Jid to, IQ.Type type, PubSubNamespace ns)
public <PE extends ExtensionElement> PE getExtension(PubSubElementType elem)
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder xml)
<iq type='set' id="MlIpV-4" to="pubsub.gato.home" from="gato3@gato.home/Smack">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
:
Specific request extension
:
</pubsub>
</iq>
getIQChildElementBuilder in class IQxml - a pre-created builder which already has the child element and the 'xmlns' attribute set.public static PubSub createPubsubPacket(org.jxmpp.jid.Jid to, IQ.Type type, ExtensionElement extension, PubSubNamespace ns)