Class JingleError
java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleError
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JingleError
static String
static final JingleError
static final JingleError
static final JingleError
static final JingleError
static final JingleError
static final JingleError
-
Constructor Summary
ConstructorDescriptionJingleError
(String message) Creates a new error with the specified code and message. -
Method Summary
Modifier and TypeMethodDescriptionstatic JingleError
fromString
(String value) Returns a Action instance associated with the String value.Returns the root element name.Returns the message describing the error, or null if there is no message.Returns the root element XML namespace.toString()
toXML
(XmlEnvironment enclosingNamespace) Returns the error as XML.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
NAMESPACE
-
OUT_OF_ORDER
-
UNKNOWN_SESSION
-
UNSUPPORTED_CONTENT
-
UNSUPPORTED_TRANSPORTS
-
NO_COMMON_PAYLOAD
-
NEGOTIATION_ERROR
-
MALFORMED_STANZA
-
-
Constructor Details
-
JingleError
Creates a new error with the specified code and message.- Parameters:
message
- a message describing the error.
-
-
Method Details
-
getMessage
Returns the message describing the error, or null if there is no message.- Returns:
- the message describing the error, or null if there is no message.
-
toXML
Returns the error as XML. -
fromString
Returns a Action instance associated with the String value.- Parameters:
value
- the input string.- Returns:
- the jingle error.
-
toString
-
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.
-