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
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractError.Builder<B extends AbstractError.Builder<B>> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractError(Map<String, String> descriptiveTexts) protectedAbstractError(Map<String, String> descriptiveTexts, String textNamespace, List<XmlElement> extensions) protectedAbstractError(Map<String, String> descriptiveTexts, List<XmlElement> extensions) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGet 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, ornullif it doesn't exist.
-
Field Details
-
textNamespace
-
descriptiveTexts
-
extensions
-
-
Constructor Details
-
AbstractError
-
AbstractError
-
AbstractError
-
-
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, ornullif 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
nullif it doesn't exist.
-
addDescriptiveTextsAndExtensions
-