|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.IQ
org.jivesoftware.smackx.packet.PubSub
public class PubSub
The standard PubSub extension of an IQ
packet. This is the topmost
element of all pubsub requests and replies as defined in the Publish-Subscribe
specification.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ |
---|
org.jivesoftware.smack.packet.IQ.Type |
Field Summary |
---|
Fields inherited from class org.jivesoftware.smack.packet.Packet |
---|
ID_NOT_AVAILABLE |
Constructor Summary | |
---|---|
PubSub()
|
Method Summary | |
---|---|
java.lang.String |
getChildElementXML()
Returns the XML representation of a pubsub element according the specification. |
java.lang.String |
getElementName()
Returns the XML element name of the extension sub-packet root element. |
org.jivesoftware.smack.packet.PacketExtension |
getExtension(PubSubElementType elem)
|
java.lang.String |
getNamespace()
Returns the XML namespace of the extension sub-packet root element. |
PubSubNamespace |
getPubSubNamespace()
Returns the current value of the namespace. |
void |
setPubSubNamespace(PubSubNamespace ns)
Set the namespace for the packet if it something other than the default case of PubSubNamespace.BASIC . |
Methods inherited from class org.jivesoftware.smack.packet.IQ |
---|
getType, setType, toXML |
Methods inherited from class org.jivesoftware.smack.packet.Packet |
---|
addExtension, deleteProperty, equals, getError, getExtension, getExtension, getExtensions, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PubSub()
Method Detail |
---|
public java.lang.String getElementName()
public java.lang.String getNamespace()
public void setPubSubNamespace(PubSubNamespace ns)
PubSubNamespace.BASIC
. The getNamespace()
method will return
the result of calling PubSubNamespace.getXmlns()
on the specified enum.
ns
- - The new value for the namespace.public org.jivesoftware.smack.packet.PacketExtension getExtension(PubSubElementType elem)
public PubSubNamespace getPubSubNamespace()
getNamespace()
method will return
the result of calling PubSubNamespace.getXmlns()
this value.
public java.lang.String getChildElementXML()
<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>
getChildElementXML
in class org.jivesoftware.smack.packet.IQ
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |