Class JingleReason
java.lang.Object
org.jivesoftware.smackx.jingle.element.JingleReason
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.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, org.jivesoftware.smack.packet.XmlElement element) -
Method Summary
Modifier and TypeMethodDescriptionAlternativeSession(String sessionId) asEnum()org.jivesoftware.smack.packet.XmlElementAn optional element that provides more detailed machine-readable information about the reason for the action.getText()An optional text that provides human-readable information about the reason for the action.org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.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.Element
toXML, toXMLMethods 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
public JingleReason(JingleReason.Reason reason, String text, org.jivesoftware.smack.packet.XmlElement element)
-
-
Method Details
-
AlternativeSession
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
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
public org.jivesoftware.smack.packet.XmlElement 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
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingXmlEnvironment) - Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
asEnum
-