Class JingleError
java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleError
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JingleErrorstatic Stringstatic final JingleErrorstatic final JingleErrorstatic final JingleErrorstatic final JingleErrorstatic final JingleErrorstatic final JingleError -
Constructor Summary
ConstructorsConstructorDescriptionJingleError(String message) Creates a new error with the specified code and message. -
Method Summary
Modifier and TypeMethodDescriptionstatic JingleErrorfromString(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, waitMethods 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: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.
-