public class AMPMatchResourceCondition extends Object implements AMPExtension.Condition
Modifier and Type | Class and Description |
---|---|
static class |
AMPMatchResourceCondition.Value
match-resource amp condition value as defined by XEP-0079.
|
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
ATTRIBUTE_NAME
Constructor and Description |
---|
AMPMatchResourceCondition(AMPMatchResourceCondition.Value value)
Create new amp match-resource condition with value set to one of defined by XEP-0079.
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getValue() |
static boolean |
isSupported(XMPPConnection connection)
Check if server supports match-resource condition.
|
public static final String NAME
public AMPMatchResourceCondition(AMPMatchResourceCondition.Value value)
value
- AMPDeliveryCondition.Value instance that will be used as value parameter. Can't be null.public static boolean isSupported(XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
connection
- Smack connection instanceXMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
InterruptedException
public String getName()
getName
in interface AMPExtension.Condition
public String getValue()
getValue
in interface AMPExtension.Condition