public class EndExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
XML element name of this extension.
|
attributes
Modifier | Constructor and Description |
---|---|
protected |
EndExtension()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
static org.jivesoftware.smack.packet.Presence |
createEnd(java.lang.String from,
java.lang.String to,
java.lang.String reason)
Creates 'Presence' packet containing call ended Rayo notification that
contains specified end reason.
|
ReasonExtension |
getReason()
Returns
ReasonExtension associated with this instance. |
static boolean |
isValidReason(java.lang.String elementName)
Checks if given elementName is valid end reason element.
|
void |
setReason(ReasonExtension newReason)
Sets new
ReasonExtension for this EndExtension instance. |
addChildExtension, addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
public static final java.lang.String ELEMENT_NAME
public static boolean isValidReason(java.lang.String elementName)
elementName
- the XML element name to check.public ReasonExtension getReason()
ReasonExtension
associated with this instance.ReasonExtension
associated with this instance.public void setReason(ReasonExtension newReason)
ReasonExtension
for this EndExtension instance.newReason
- the new ReasonExtension
to set.public static org.jivesoftware.smack.packet.Presence createEnd(java.lang.String from, java.lang.String to, java.lang.String reason)
from
- source JID of this event.to
- destination JID.reason
- call end reason string. One of ReasonExtension
static constants.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.