Class BlockedErrorExtension
java.lang.Object
org.jivesoftware.smackx.blocking.element.BlockedErrorExtension
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
public class BlockedErrorExtension
extends Object
implements org.jivesoftware.smack.packet.ExtensionElement
Blocked error extension class.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockedErrorExtensionfrom(org.jivesoftware.smack.packet.Message message) static booleanisInside(org.jivesoftware.smack.packet.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.toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
NAMESPACE
- See Also:
-
-
Constructor Details
-
BlockedErrorExtension
public BlockedErrorExtension()
-
-
Method Details
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
from
-
isInside
public static boolean isInside(org.jivesoftware.smack.packet.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
-