Class JingleReason
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.element.JingleReason
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Direct Known Subclasses:
JingleReason.AlternativeSession
public class JingleReason extends Object implements FullyQualifiedElement
The Jingle 'reason' element.- See Also:
- XEP-0166 ยง 7.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JingleReason.AlternativeSession
static class
JingleReason.Reason
-
Field Summary
Fields Modifier and Type Field Description static JingleReason
Busy
static JingleReason
Cancel
static JingleReason
ConnectivityError
static JingleReason
Decline
static String
ELEMENT
static JingleReason
Expired
static JingleReason
FailedApplication
static JingleReason
FailedTransport
static JingleReason
GeneralError
static JingleReason
Gone
static JingleReason
IncompatibleParameters
static JingleReason
MediaError
static String
NAMESPACE
protected JingleReason.Reason
reason
static JingleReason
SecurityError
static JingleReason
Success
static JingleReason
Timeout
static JingleReason
UnsupportedApplications
static JingleReason
UnsupportedTransports
-
Constructor Summary
Constructors Constructor Description JingleReason(JingleReason.Reason reason)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JingleReason.AlternativeSession
AlternativeSession(String sessionId)
JingleReason.Reason
asEnum()
String
getElementName()
Returns the root element name.String
getNamespace()
Returns the root element XML namespace.XmlStringBuilder
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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
Busy
public static final JingleReason Busy
-
Cancel
public static final JingleReason Cancel
-
ConnectivityError
public static final JingleReason ConnectivityError
-
Decline
public static final JingleReason Decline
-
Expired
public static final JingleReason Expired
-
FailedApplication
public static final JingleReason FailedApplication
-
FailedTransport
public static final JingleReason FailedTransport
-
GeneralError
public static final JingleReason GeneralError
-
Gone
public static final JingleReason Gone
-
IncompatibleParameters
public static final JingleReason IncompatibleParameters
-
MediaError
public static final JingleReason MediaError
-
SecurityError
public static final JingleReason SecurityError
-
Success
public static final JingleReason Success
-
Timeout
public static final JingleReason Timeout
-
UnsupportedApplications
public static final JingleReason UnsupportedApplications
-
UnsupportedTransports
public static final JingleReason UnsupportedTransports
-
reason
protected final JingleReason.Reason reason
-
-
Constructor Detail
-
JingleReason
public JingleReason(JingleReason.Reason reason)
-
-
Method Detail
-
AlternativeSession
public static JingleReason.AlternativeSession AlternativeSession(String sessionId)
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingXmlEnvironment)
-
asEnum
public JingleReason.Reason asEnum()
-
-