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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    from(org.jivesoftware.smack.packet.Message message)
     
     
     
    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.
    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
  • Field Details

  • Constructor Details

    • BlockedErrorExtension

      public BlockedErrorExtension()
  • Method Details

    • getElementName

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

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

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