Class IoTControlManager
java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.iot.IoTManager
org.jivesoftware.smackx.iot.control.IoTControlManager
A manger for XEP-0325: Internet of Things - Control.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smackx.iot.IoTManager
IoTManager.IoTIqRequestHandler
-
Method Summary
Modifier and TypeMethodDescriptionstatic IoTControlManager
getInstanceFor
(XMPPConnection connection) Get the manger instance responsible for the given connection.void
installThing
(Thing thing) Install a thing in the manager.setUsingIq
(FullJid jid, Collection<? extends SetData> data) Control a thing by sending a collection ofSetData
instructions.setUsingIq
(FullJid jid, SetData data) Control a thing by sending a collection ofSetData
instructions.uninstallThing
(NodeInfo nodeInfo) uninstallThing
(Thing thing) Methods inherited from class org.jivesoftware.smackx.iot.IoTManager
isAllowed, isAutoEnableActive, setAllowNonFriends, setAutoEnableIoTManagers
Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
Method Details
-
getInstanceFor
Get the manger instance responsible for the given connection.- Parameters:
connection
- the XMPP connection.- Returns:
- a manager instance.
-
setUsingIq
public IoTSetResponse setUsingIq(FullJid jid, SetData data) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException Control a thing by sending a collection ofSetData
instructions.- Parameters:
jid
- TODO javadoc me pleasedata
- TODO javadoc me please- Returns:
- a IoTSetResponse
- Throws:
SmackException.NoResponseException
- if there was no response from the remote entity.XMPPException.XMPPErrorException
- if there was an XMPP error returned.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.- See Also:
-
setUsingIq
public IoTSetResponse setUsingIq(FullJid jid, Collection<? extends SetData> data) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException Control a thing by sending a collection ofSetData
instructions.- Parameters:
jid
- the thing to control.data
- a collection ofSetData
instructions.- Returns:
- the
IoTSetResponse
if successful. - Throws:
SmackException.NoResponseException
- if there was no response from the remote entity.XMPPException.XMPPErrorException
- if there was an XMPP error returned.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-
installThing
Install a thing in the manager. Activates control functionality (if provided by the thing).- Parameters:
thing
- the thing to install.
-
uninstallThing
-
uninstallThing
-