Class JingleError
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.packet.JingleError
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public class JingleError extends java.lang.Object implements ExtensionElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJingleError.Provider
-
Field Summary
Fields Modifier and Type Field Description static JingleErrorMALFORMED_STANZAstatic java.lang.StringNAMESPACEstatic JingleErrorNEGOTIATION_ERRORstatic JingleErrorNO_COMMON_PAYLOADstatic JingleErrorOUT_OF_ORDERstatic JingleErrorUNKNOWN_SESSIONstatic JingleErrorUNSUPPORTED_CONTENTstatic JingleErrorUNSUPPORTED_TRANSPORTS
-
Constructor Summary
Constructors Constructor Description JingleError(java.lang.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 JingleErrorfromString(java.lang.String value)Returns a Action instance associated with the String value.java.lang.StringgetElementName()Returns the root element name.java.lang.StringgetMessage()Returns the message describing the error, or null if there is no message.java.lang.StringgetNamespace()Returns the root element XML namespace.java.lang.StringtoString()java.lang.StringtoXML(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
-
NAMESPACE
public static java.lang.String NAMESPACE
-
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(java.lang.String message)
Creates a new error with the specified code and message.- Parameters:
message- a message describing the error.
-
-
Method Detail
-
getMessage
public java.lang.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 java.lang.String toXML(XmlEnvironment enclosingNamespace)
Returns the error as XML.
-
fromString
public static JingleError fromString(java.lang.String value)
Returns a Action instance associated with the String value.- Parameters:
value- the input string.- Returns:
- the jingle error.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- the namespace.
-
-