public class AbstractError extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
descriptiveTexts |
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(/packet) extension that matches the specified element name and
namespace, or null if it doesn't exist.
|
protected final Map<String,String> descriptiveTexts
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)
elementName
- the XML element name of the stanza(/packet) extension.namespace
- the XML element namespace of the stanza(/packet) extension.protected void addDescriptiveTextsAndExtensions(XmlStringBuilder xml)