Class IoTControlManager

java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.iot.IoTManager
org.jivesoftware.smackx.iot.control.IoTControlManager

public final class IoTControlManager extends IoTManager
A manger for XEP-0325: Internet of Things - Control.
See Also:
  • Method Details

    • getInstanceFor

      public static IoTControlManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
      Get the manger instance responsible for the given connection.
      Parameters:
      connection - the XMPP connection.
      Returns:
      a manager instance.
    • setUsingIq

      public IoTSetResponse setUsingIq(org.jxmpp.jid.FullJid jid, SetData data) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Control a thing by sending a collection of SetData instructions.
      Parameters:
      jid - TODO javadoc me please
      data - TODO javadoc me please
      Returns:
      a IoTSetResponse
      Throws:
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.
      See Also:
    • setUsingIq

      public IoTSetResponse setUsingIq(org.jxmpp.jid.FullJid jid, Collection<? extends SetData> data) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Control a thing by sending a collection of SetData instructions.
      Parameters:
      jid - the thing to control.
      data - a collection of SetData instructions.
      Returns:
      the IoTSetResponse if successful.
      Throws:
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.
    • installThing

      public void installThing(Thing thing)
      Install a thing in the manager. Activates control functionality (if provided by the thing).
      Parameters:
      thing - the thing to install.
    • uninstallThing

      public Thing uninstallThing(Thing thing)
    • uninstallThing

      public Thing uninstallThing(NodeInfo nodeInfo)