public class AMPExpireAtCondition extends java.lang.Object implements AMPExtension.Condition
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
ATTRIBUTE_NAME| Constructor and Description |
|---|
AMPExpireAtCondition(java.util.Date utcDateTime)
Create new expire-at amp condition with value setted as XEP-0082 formatted date.
|
AMPExpireAtCondition(java.lang.String utcDateTime)
Create new expire-at amp condition with defined value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.lang.String |
getValue() |
static boolean |
isSupported(XMPPConnection connection)
Check if server supports expire-at condition
|
public static final java.lang.String NAME
public AMPExpireAtCondition(java.util.Date utcDateTime)
utcDateTime - Date instance of time
that will be used as value parameter after formatting to XEP-0082 format. Can't be null.public AMPExpireAtCondition(java.lang.String utcDateTime)
utcDateTime - UTC time string that will be used as value parameter.
Should be formatted as XEP-0082 Date format. Can't be null.public static boolean isSupported(XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
connection - Smack connection instanceXMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionpublic java.lang.String getName()
getName in interface AMPExtension.Conditionpublic java.lang.String getValue()
getValue in interface AMPExtension.Condition