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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JingleReasonstatic final JingleReasonstatic final JingleReasonstatic final JingleReasonstatic final Stringstatic final JingleReasonstatic final JingleReasonstatic final JingleReasonstatic final JingleReasonstatic final JingleReasonstatic final JingleReasonstatic final JingleReasonstatic final Stringprotected final JingleReason.Reasonstatic final JingleReasonstatic final JingleReasonstatic final Stringstatic final JingleReasonstatic final JingleReasonstatic final JingleReason -
Constructor Summary
ConstructorsConstructorDescriptionJingleReason(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, waitMethods 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:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein 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
-