public class AbstractError extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractError.Builder<B extends AbstractError.Builder<B>> |
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
descriptiveTexts |
protected List<ExtensionElement> |
extensions |
protected String |
textNamespace |
Modifier | Constructor and Description |
---|---|
protected |
AbstractError(Map<String,String> descriptiveTexts) |
protected |
AbstractError(Map<String,String> descriptiveTexts,
List<ExtensionElement> extensions) |
protected |
AbstractError(Map<String,String> descriptiveTexts,
String textNamespace,
List<ExtensionElement> extensions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDescriptiveTextsAndExtensions(XmlStringBuilder xml) |
String |
getDescriptiveText()
Get the descriptive text of this SASLFailure.
|
String |
getDescriptiveText(String xmllang)
Get the descriptive test of this SASLFailure.
|
<PE extends ExtensionElement> |
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.
|
protected final String textNamespace
protected final Map<String,String> descriptiveTexts
protected final List<ExtensionElement> extensions
protected AbstractError(Map<String,String> descriptiveTexts)
protected AbstractError(Map<String,String> descriptiveTexts, List<ExtensionElement> extensions)
protected AbstractError(Map<String,String> descriptiveTexts, String textNamespace, List<ExtensionElement> extensions)
public String getDescriptiveText()
Returns the descriptive text of this SASLFailure in the system default language if possible. May return null.
public String getDescriptiveText(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(String elementName, 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)