Class AMPDeliverCondition

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

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

  • Constructor Details

    • AMPDeliverCondition

      public AMPDeliverCondition(AMPDeliverCondition.Value value)
      Create new amp deliver condition with value set to one of defined by XEP-0079. See http://xmpp.org/extensions/xep-0079.html#conditions-def-deliver
      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 deliver condition.
      Parameters:
      connection - Smack connection instance
      Returns:
      true if deliver 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