Class DepartQueuePacket
- java.lang.Object
-
- org.jivesoftware.smack.packet.Stanza
-
- org.jivesoftware.smack.packet.IQ
-
- org.jivesoftware.smackx.workgroup.packet.DepartQueuePacket
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element
,org.jivesoftware.smack.packet.FullyQualifiedElement
,org.jivesoftware.smack.packet.IqView
,org.jivesoftware.smack.packet.NamedElement
,org.jivesoftware.smack.packet.StanzaView
,org.jivesoftware.smack.packet.TopLevelStreamElement
,org.jivesoftware.smack.packet.XmlLangElement
public class DepartQueuePacket extends org.jivesoftware.smack.packet.IQ
A IQ stanza used to depart a workgroup queue. There are two cases for issuing a depart queue request:- The user wants to leave the queue. In this case, an instance of this class should be created without passing in a user address.
- An administrator or the server removes wants to remove a user from the queue. In that case, the address of the user to remove from the queue should be used to create an instance of this class.
-
-
Constructor Summary
Constructors Constructor Description DepartQueuePacket(org.jxmpp.jid.EntityBareJid workgroup)
Creates a depart queue request stanza to the specified workgroup.DepartQueuePacket(org.jxmpp.jid.EntityBareJid workgroup, org.jxmpp.jid.EntityJid user)
Creates a depart queue request to the specified workgroup and for the specified user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder
getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf)
-
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementQName, getChildElementXML, getElementName, getType, isRequestIQ, isResponseIQ, setType, toString, toXML
-
Methods inherited from class org.jivesoftware.smack.packet.Stanza
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtension, getExtensionElement, getExtensions, getExtensions, getExtensions, getExtensions, getExtensionsMap, getFrom, getLanguage, getNamespace, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setLanguage, setNewStanzaId, setStanzaId, setStanzaId, setTo, throwIfNoStanzaId
-
-
-
-
Constructor Detail
-
DepartQueuePacket
public DepartQueuePacket(org.jxmpp.jid.EntityBareJid workgroup)
Creates a depart queue request stanza to the specified workgroup.- Parameters:
workgroup
- the workgroup to depart.
-
DepartQueuePacket
public DepartQueuePacket(org.jxmpp.jid.EntityBareJid workgroup, org.jxmpp.jid.EntityJid user)
Creates a depart queue request to the specified workgroup and for the specified user.- Parameters:
workgroup
- the workgroup to depart.user
- the user to make depart from the queue.
-
-