Class JingleError

java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleError
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

public class JingleError extends Object implements org.jivesoftware.smack.packet.ExtensionElement
  • Field Details

    • NAMESPACE

      public static 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 Details

    • JingleError

      public JingleError(String message)
      Creates a new error with the specified code and message.
      Parameters:
      message - a message describing the error.
  • Method Details

    • 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(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Returns the error as XML.
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element
      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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement