Package org.jivesoftware.smackx.amp
Class AMPMatchResourceCondition
java.lang.Object
org.jivesoftware.smackx.amp.AMPMatchResourceCondition
- All Implemented Interfaces:
AMPExtension.Condition
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
match-resource amp condition value as defined by XEP-0079. -
Field Summary
Fields inherited from interface org.jivesoftware.smackx.amp.packet.AMPExtension.Condition
ATTRIBUTE_NAME
-
Constructor Summary
ConstructorDescriptionCreate new amp match-resource condition with value set to one of defined by XEP-0079. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getValue()
static boolean
isSupported
(XMPPConnection connection) Check if server supports match-resource condition.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
AMPMatchResourceCondition
Create new amp match-resource condition with value set to one of defined by XEP-0079. See http://xmpp.org/extensions/xep-0079.html#conditions-def-match- Parameters:
value
- AMPDeliveryCondition.Value instance that will be used as value parameter. Can't be null.
-
-
Method Details
-
isSupported
public static boolean isSupported(XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException Check if server supports match-resource condition.- Parameters:
connection
- Smack connection instance- Returns:
- true if match-resource condition is supported.
- Throws:
XMPPException.XMPPErrorException
- if there was an XMPP error returned.SmackException.NoResponseException
- if there was no response from the remote entity.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-
getName
- Specified by:
getName
in interfaceAMPExtension.Condition
-
getValue
- Specified by:
getValue
in interfaceAMPExtension.Condition
-