Class AMPMatchResourceCondition

java.lang.Object
org.jivesoftware.smackx.amp.AMPMatchResourceCondition
All Implemented Interfaces:
AMPExtension.Condition

public class AMPMatchResourceCondition extends Object implements AMPExtension.Condition
  • Field Details

  • Constructor Details

    • AMPMatchResourceCondition

      public AMPMatchResourceCondition(AMPMatchResourceCondition.Value value)
      Create new amp match-resource condition with value set to one of defined by XEP-0079. See http://xmpp.org/extensions/xep-0079.html#conditions-def-match
      Parameters:
      value - AMPDeliveryCondition.Value instance that will be used as value parameter. Can't be null.
  • Method Details

    • isSupported

      public static boolean isSupported(org.jivesoftware.smack.XMPPConnection connection) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Check if server supports match-resource condition.
      Parameters:
      connection - Smack connection instance
      Returns:
      true if match-resource condition is supported.
      Throws:
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.
    • getName

      public String getName()
      Specified by:
      getName in interface AMPExtension.Condition
    • getValue

      public String getValue()
      Specified by:
      getValue in interface AMPExtension.Condition