Class JingleError
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.packet.JingleError
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class JingleError extends Object implements ExtensionElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JingleError.Provider
-
Field Summary
Fields Modifier and Type Field Description static JingleError
MALFORMED_STANZA
static String
NAMESPACE
static JingleError
NEGOTIATION_ERROR
static JingleError
NO_COMMON_PAYLOAD
static JingleError
OUT_OF_ORDER
static JingleError
UNKNOWN_SESSION
static JingleError
UNSUPPORTED_CONTENT
static JingleError
UNSUPPORTED_TRANSPORTS
-
Constructor Summary
Constructors Constructor Description JingleError(String message)
Creates a new error with the specified code and message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JingleError
fromString(String value)
Returns a Action instance associated with the String value.String
getElementName()
Returns the root element name.String
getMessage()
Returns the message describing the error, or null if there is no message.String
getNamespace()
Returns the root element XML namespace.String
toString()
String
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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
OUT_OF_ORDER
public static final JingleError OUT_OF_ORDER
-
UNKNOWN_SESSION
public static final JingleError UNKNOWN_SESSION
-
UNSUPPORTED_CONTENT
public static final JingleError UNSUPPORTED_CONTENT
-
UNSUPPORTED_TRANSPORTS
public static final JingleError UNSUPPORTED_TRANSPORTS
-
NO_COMMON_PAYLOAD
public static final JingleError NO_COMMON_PAYLOAD
-
NEGOTIATION_ERROR
public static final JingleError NEGOTIATION_ERROR
-
MALFORMED_STANZA
public static final JingleError MALFORMED_STANZA
-
-
Constructor Detail
-
JingleError
public JingleError(String message)
Creates a new error with the specified code and message.- Parameters:
message
- a message describing the error.
-
-
Method Detail
-
getMessage
public String 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
public String toXML(XmlEnvironment enclosingNamespace)
Returns the error as XML.
-
fromString
public static JingleError fromString(String value)
Returns a Action instance associated with the String value.- Parameters:
value
- the input string.- Returns:
- the jingle error.
-
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.
-
-