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 java.lang.Object implements org.jivesoftware.smack.packet.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(org.jivesoftware.smack.packet.Message message)
java.lang.String
getElementName()
java.lang.String
getNamespace()
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.java.lang.CharSequence
toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
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
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
- Specified by:
getElementName
in interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public java.lang.CharSequence toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXML
in interfaceorg.jivesoftware.smack.packet.Element
-
from
public static BlockedErrorExtension from(org.jivesoftware.smack.packet.Message message)
-
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
-
-