public class PubSub
extends org.jivesoftware.smack.packet.IQ
IQ packet. This is the topmost
element of all pubsub requests and replies as defined in the Publish-Subscribe
specification.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
PubSub() |
PubSub(PubSubNamespace ns) |
PubSub(java.lang.String to,
org.jivesoftware.smack.packet.IQ.Type type,
PubSubNamespace ns) |
| Modifier and Type | Method and Description |
|---|---|
static PubSub |
createPubsubPacket(java.lang.String to,
org.jivesoftware.smack.packet.IQ.Type type,
org.jivesoftware.smack.packet.ExtensionElement extension,
PubSubNamespace ns) |
java.lang.String |
getElementName()
Returns the XML element name of the extension sub-packet root element.
|
<PE extends org.jivesoftware.smack.packet.ExtensionElement> |
getExtension(PubSubElementType elem) |
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder |
getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml)
Returns the XML representation of a pubsub element 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 java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public PubSub()
public PubSub(PubSubNamespace ns)
public PubSub(java.lang.String to,
org.jivesoftware.smack.packet.IQ.Type type,
PubSubNamespace ns)
public java.lang.String getElementName()
public <PE extends org.jivesoftware.smack.packet.ExtensionElement> PE getExtension(PubSubElementType elem)
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.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 org.jivesoftware.smack.packet.IQpublic static PubSub createPubsubPacket(java.lang.String to, org.jivesoftware.smack.packet.IQ.Type type, org.jivesoftware.smack.packet.ExtensionElement extension, PubSubNamespace ns)