Class EligibleForChatMarkerFilter

java.lang.Object
org.jivesoftware.smack.filter.StanzaExtensionFilter
org.jivesoftware.smackx.chat_markers.filter.EligibleForChatMarkerFilter
All Implemented Interfaces:
Predicate<org.jivesoftware.smack.packet.Stanza>, org.jivesoftware.smack.filter.StanzaFilter

public final class EligibleForChatMarkerFilter extends org.jivesoftware.smack.filter.StanzaExtensionFilter
Chat Markers Manager class (XEP-0333).
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(org.jivesoftware.smack.packet.Stanza message)
    From XEP-0333, Protocol Format: The Chat Marker MUST have an 'id' which is the 'id' of the message being marked.
    In order to make Chat Markers works together with XEP-0085 as it said in 8.5 Interaction with Chat States, only messages with active chat state are accepted.

    Methods inherited from class org.jivesoftware.smack.filter.StanzaExtensionFilter

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or

    Methods inherited from interface org.jivesoftware.smack.filter.StanzaFilter

    asPredicate, test
  • Field Details

  • Method Details

    • accept

      public boolean accept(org.jivesoftware.smack.packet.Stanza message)
      From XEP-0333, Protocol Format: The Chat Marker MUST have an 'id' which is the 'id' of the message being marked.
      In order to make Chat Markers works together with XEP-0085 as it said in 8.5 Interaction with Chat States, only messages with active chat state are accepted.
      Specified by:
      accept in interface org.jivesoftware.smack.filter.StanzaFilter
      Overrides:
      accept in class org.jivesoftware.smack.filter.StanzaExtensionFilter
      Parameters:
      message - to be analyzed.
      Returns:
      true if the message contains a stanza Id.
      See Also: