Class AMPDeliverCondition

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AMPDeliverCondition.Value
      Value for amp deliver condition as defined by XEP-0079.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      java.lang.String getValue()  
      static boolean isSupported​(org.jivesoftware.smack.XMPPConnection connection)
      Check if server supports deliver condition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • 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,
                                          java.lang.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.
        java.lang.InterruptedException - if the calling thread was interrupted.