public class AbstractError
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractError.Builder<B extends AbstractError.Builder<B>> |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
descriptiveTexts |
protected java.util.List<ExtensionElement> |
extensions |
protected java.lang.String |
textNamespace |
Modifier | Constructor and Description |
---|---|
protected |
AbstractError(java.util.Map<java.lang.String,java.lang.String> descriptiveTexts) |
protected |
AbstractError(java.util.Map<java.lang.String,java.lang.String> descriptiveTexts,
java.util.List<ExtensionElement> extensions) |
protected |
AbstractError(java.util.Map<java.lang.String,java.lang.String> descriptiveTexts,
java.lang.String textNamespace,
java.util.List<ExtensionElement> extensions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDescriptiveTextsAndExtensions(XmlStringBuilder xml) |
java.lang.String |
getDescriptiveText()
Get the descriptive text of this SASLFailure.
|
java.lang.String |
getDescriptiveText(java.lang.String xmllang)
Get the descriptive test of this SASLFailure.
|
<PE extends ExtensionElement> |
getExtension(java.lang.String elementName,
java.lang.String namespace)
Returns the first stanza extension that matches the specified element name and
namespace, or null if it doesn't exist.
|
protected final java.lang.String textNamespace
protected final java.util.Map<java.lang.String,java.lang.String> descriptiveTexts
protected final java.util.List<ExtensionElement> extensions
protected AbstractError(java.util.Map<java.lang.String,java.lang.String> descriptiveTexts)
protected AbstractError(java.util.Map<java.lang.String,java.lang.String> descriptiveTexts, java.util.List<ExtensionElement> extensions)
protected AbstractError(java.util.Map<java.lang.String,java.lang.String> descriptiveTexts, java.lang.String textNamespace, java.util.List<ExtensionElement> extensions)
public java.lang.String getDescriptiveText()
Returns the descriptive text of this SASLFailure in the system default language if possible. May return null.
public java.lang.String getDescriptiveText(java.lang.String xmllang)
Returns the descriptive text of this SASLFailure in the given language. May return null if not available.
xmllang
- the language.public <PE extends ExtensionElement> PE getExtension(java.lang.String elementName, java.lang.String namespace)
PE
- type of the ExtensionElement.elementName
- the XML element name of the stanza extension.namespace
- the XML element namespace of the stanza extension.protected void addDescriptiveTextsAndExtensions(XmlStringBuilder xml)