public class ReasonExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUSY
Indication that the call ended due to being rejected by the remote party
subsequent to being accepted.
|
static java.lang.String |
ERROR
Indication that the call ended due to a system error.
|
static java.lang.String |
HANGUP
Indication that the call ended due to a normal hangup by the remote
party.
|
static java.lang.String |
HANGUP_COMMND
Indication that the call ended due to a normal hangup triggered by
a hangup command.
|
static java.lang.String |
PLATFORM_CODE_ATTRIBUTE
The name of optional platform code attribute.
|
static java.lang.String |
REJECTED
Indication that the call ended due to being rejected by the remote party
before being accepted.
|
static java.lang.String |
TIMEOUT
Indication that the call ended due to a timeout in contacting the remote
party.
|
attributes
Constructor and Description |
---|
ReasonExtension(java.lang.String elementName)
Creates an
ReasonExtension instance for the specified
namespace and elementName. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPlatformCode()
Returns the value of platform code attribute.
|
void |
setPlatformCode(java.lang.String code)
Sets new value of platform code attribute.
|
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 PLATFORM_CODE_ATTRIBUTE
public static final java.lang.String HANGUP
public static final java.lang.String HANGUP_COMMND
public static final java.lang.String TIMEOUT
public static final java.lang.String BUSY
public static final java.lang.String REJECTED
public static final java.lang.String ERROR
public ReasonExtension(java.lang.String elementName)
ReasonExtension
instance for the specified
namespace and elementName.elementName
- the name of the elementpublic java.lang.String getPlatformCode()
public void setPlatformCode(java.lang.String code)
code
- new value of platform code attribute. Pass null to
remove.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.