Class JingleReason
java.lang.Object
org.jivesoftware.smackx.jingle.element.JingleReason
- All Implemented Interfaces:
Element
,NamedElement
,XmlElement
,XmlLangElement
- Direct Known Subclasses:
JingleReason.AlternativeSession
The Jingle 'reason' element.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JingleReason
static final JingleReason
static final JingleReason
static final JingleReason
static final String
static final JingleReason
static final JingleReason
static final JingleReason
static final JingleReason
static final JingleReason
static final JingleReason
static final JingleReason
static final String
protected final JingleReason.Reason
static final JingleReason
static final JingleReason
static final String
static final JingleReason
static final JingleReason
static final JingleReason
-
Constructor Summary
ConstructorDescriptionJingleReason
(JingleReason.Reason reason) JingleReason
(JingleReason.Reason reason, String text, XmlElement element) -
Method Summary
Modifier and TypeMethodDescriptionAlternativeSession
(String sessionId) asEnum()
An optional element that provides more detailed machine-readable information about the reason for the action.Returns the root element name.Returns the root element XML namespace.getText()
An optional text that provides human-readable information about the reason for the action.toXML
(XmlEnvironment enclosingXmlEnvironment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
NAMESPACE
- See Also:
-
TEXT_ELEMENT
- See Also:
-
Busy
-
Cancel
-
ConnectivityError
-
Decline
-
Expired
-
FailedApplication
-
FailedTransport
-
GeneralError
-
Gone
-
IncompatibleParameters
-
MediaError
-
SecurityError
-
Success
-
Timeout
-
UnsupportedApplications
-
UnsupportedTransports
-
reason
-
-
Constructor Details
-
JingleReason
-
JingleReason
-
-
Method Details
-
AlternativeSession
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
getText
An optional text that provides human-readable information about the reason for the action.- Returns:
- a human-readable text with information regarding this reason or
null
. - Since:
- 4.4.5
-
getElement
An optional element that provides more detailed machine-readable information about the reason for the action.- Returns:
- an element with machine-readable information about this reason or
null
. - Since:
- 4.4.5
-
toXML
-
asEnum
-