Class AbstractError

java.lang.Object
org.jivesoftware.smack.packet.AbstractError
Direct Known Subclasses:
SaslNonza.SASLFailure, StanzaError, StreamError

public class AbstractError extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getDescriptiveText

      Get the descriptive text of this SASLFailure.

      Returns the descriptive text of this SASLFailure in the system default language if possible. May return null.

      Returns:
      the descriptive text or null.
    • getDescriptiveText

      public String getDescriptiveText(String xmllang)
      Get the descriptive test of this SASLFailure.

      Returns the descriptive text of this SASLFailure in the given language. May return null if not available.

      Parameters:
      xmllang - the language.
      Returns:
      the descriptive text or null.
    • getExtension

      public <PE extends XmlElement> PE getExtension(String elementName, String namespace)
      Returns the first stanza extension that matches the specified element name and namespace, or null if it doesn't exist.
      Type Parameters:
      PE - type of the ExtensionElement.
      Parameters:
      elementName - the XML element name of the stanza extension.
      namespace - the XML element namespace of the stanza extension.
      Returns:
      the extension, or null if it doesn't exist.
    • addDescriptiveTextsAndExtensions