Package org.jivesoftware.smack.packet
Class AbstractError
java.lang.Object
org.jivesoftware.smack.packet.AbstractError
- Direct Known Subclasses:
SaslNonza.SASLFailure
,StanzaError
,StreamError
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AbstractError.Builder<B extends AbstractError.Builder<B>>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractError
(Map<String, String> descriptiveTexts) protected
AbstractError
(Map<String, String> descriptiveTexts, String textNamespace, List<XmlElement> extensions) protected
AbstractError
(Map<String, String> descriptiveTexts, List<XmlElement> extensions) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Get the descriptive text of this SASLFailure.getDescriptiveText
(String xmllang) Get the descriptive test of this SASLFailure.<PE extends XmlElement>
PEgetExtension
(String elementName, String namespace) Returns the first stanza extension that matches the specified element name and namespace, ornull
if it doesn't exist.
-
Field Details
-
textNamespace
-
descriptiveTexts
-
extensions
-
-
Constructor Details
-
AbstractError
-
AbstractError
-
AbstractError
protected AbstractError(Map<String, String> descriptiveTexts, String textNamespace, List<XmlElement> extensions)
-
-
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
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
Returns the first stanza extension that matches the specified element name and namespace, ornull
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
-