Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELEMENT  
      static java.lang.String NAMESPACE  
    • 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)  
      • 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.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

        getLanguage, getQName
    • Constructor Detail

      • BlockedErrorExtension

        public BlockedErrorExtension()
    • Method Detail

      • getElementName

        public java.lang.String getElementName()
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.XmlElement
      • toXML

        public java.lang.CharSequence toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element
      • 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