public class BlockedErrorExtension extends Object implements ExtensionElement
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
Constructor and Description |
---|
BlockedErrorExtension() |
Modifier and Type | Method and Description |
---|---|
static BlockedErrorExtension |
from(Message message) |
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
static boolean |
isInside(Message message)
Check if a message contains a BlockedErrorExtension, which means that a
message was blocked because the JID blocked the sender, and that was
reflected back as an error message.
|
CharSequence |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public static final String NAMESPACE
public BlockedErrorExtension()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public CharSequence toXML(String enclosingNamespace)
Element
public static BlockedErrorExtension from(Message message)
public static boolean isInside(Message message)
message
-