public class AMPDeliverCondition extends java.lang.Object implements AMPExtension.Condition
| Modifier and Type | Class and Description |
|---|---|
static class |
AMPDeliverCondition.Value
Value for amp deliver condition as defined by XEP-0079.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
ATTRIBUTE_NAME| Constructor and Description |
|---|
AMPDeliverCondition(AMPDeliverCondition.Value value)
Create new amp deliver condition with value setted to one of defined by XEP-0079.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.lang.String |
getValue() |
static boolean |
isSupported(org.jivesoftware.smack.XMPPConnection connection)
Check if server supports deliver condition
|
public static final java.lang.String NAME
public AMPDeliverCondition(AMPDeliverCondition.Value value)
value - AMPDeliveryCondition.Value instance that will be used as value parameter. Can't be null.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
connection - Smack connection instanceorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionpublic java.lang.String getName()
getName in interface AMPExtension.Conditionpublic java.lang.String getValue()
getValue in interface AMPExtension.Condition