Class BlockedErrorExtension
- java.lang.Object
-
- org.jivesoftware.smackx.blocking.element.BlockedErrorExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class BlockedErrorExtension extends java.lang.Object implements ExtensionElement
Blocked error extension class.- See Also:
- XEP-0191: Blocking Command
-
-
Constructor Summary
Constructors Constructor Description BlockedErrorExtension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockedErrorExtension
from(Message message)
java.lang.String
getElementName()
Returns the root element name.java.lang.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.java.lang.CharSequence
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlockedErrorExtension
public BlockedErrorExtension()
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public java.lang.CharSequence toXML(XmlEnvironment enclosingNamespace)
-
from
public static BlockedErrorExtension from(Message message)
-
isInside
public 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.- Parameters:
message
- TODO javadoc me please- Returns:
- true if the message contains a BlockedErrorExtension, false if not
-
-