public final class StreamError extends Object implements ServerStreamElement
<stream:error/> element.
| Constructor and Description |
|---|
StreamError(Condition condition) |
| Modifier and Type | Method and Description |
|---|---|
Condition |
getCondition()
Gets the defined stream error condition.
|
Object |
getExtension()
Gets the application specific condition, if any.
|
String |
getLanguage()
Gets the language of the error text.
|
String |
getText()
Gets the optional error text.
|
void |
setExtension(Object extension)
Sets an application specific condition.
|
void |
setText(String text)
Sets the optional error text.
|
void |
setText(String text,
String language)
Sets the optional error text and a language.
|
String |
toString() |
public StreamError(Condition condition)
public String getLanguage()
public String getText()
public void setText(String text)
text - The text.setText(String, String),
getText()public final void setText(String text, String language)
text - The text.language - The language.setText(String),
getText()public final Object getExtension()
setExtension(Object)public final void setExtension(Object extension)
extension - The application specific condition.getExtension()public Condition getCondition()
Copyright © 2014 XMPP.rocks. All rights reserved.