Class UpnpAddonFinder

java.lang.Object
org.openhab.core.config.discovery.addon.BaseAddonFinder
org.openhab.core.config.discovery.addon.upnp.UpnpAddonFinder
All Implemented Interfaces:
org.jupnp.registry.RegistryListener, AddonFinder

@NonNullByDefault public class UpnpAddonFinder extends BaseAddonFinder implements org.jupnp.registry.RegistryListener
This is a UpnpAddonFinder for finding suggested Addons via UPnP.
Author:
Andrew Fiddian-Green - Initial contribution, Mark Herwege - refactor to allow uninstall
  • Field Details

  • Constructor Details

    • UpnpAddonFinder

      public UpnpAddonFinder(org.jupnp.UpnpService upnpService)
  • Method Details

    • deactivate

      public void deactivate()
    • getSuggestedAddons

      public Set<AddonInfo> getSuggestedAddons()
      Description copied from interface: AddonFinder
      The framework calls this method to scan through the candidate list of AddonInfo and return a subset of those that it suggests to be installed.
      Specified by:
      getSuggestedAddons in interface AddonFinder
    • getServiceName

      public String getServiceName()
      Specified by:
      getServiceName in class BaseAddonFinder
    • afterShutdown

      public void afterShutdown()
      Specified by:
      afterShutdown in interface org.jupnp.registry.RegistryListener
    • beforeShutdown

      public void beforeShutdown(@Nullable org.jupnp.registry.Registry registry)
      Specified by:
      beforeShutdown in interface org.jupnp.registry.RegistryListener
    • localDeviceAdded

      public void localDeviceAdded(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.LocalDevice localDevice)
      Specified by:
      localDeviceAdded in interface org.jupnp.registry.RegistryListener
    • localDeviceRemoved

      public void localDeviceRemoved(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.LocalDevice localDevice)
      Specified by:
      localDeviceRemoved in interface org.jupnp.registry.RegistryListener
    • remoteDeviceAdded

      public void remoteDeviceAdded(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice)
      Specified by:
      remoteDeviceAdded in interface org.jupnp.registry.RegistryListener
    • remoteDeviceDiscoveryFailed

      public void remoteDeviceDiscoveryFailed(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice, @Nullable Exception exception)
      Specified by:
      remoteDeviceDiscoveryFailed in interface org.jupnp.registry.RegistryListener
    • remoteDeviceDiscoveryStarted

      public void remoteDeviceDiscoveryStarted(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice)
      Specified by:
      remoteDeviceDiscoveryStarted in interface org.jupnp.registry.RegistryListener
    • remoteDeviceRemoved

      public void remoteDeviceRemoved(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice)
      Specified by:
      remoteDeviceRemoved in interface org.jupnp.registry.RegistryListener
    • remoteDeviceUpdated

      public void remoteDeviceUpdated(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice)
      Specified by:
      remoteDeviceUpdated in interface org.jupnp.registry.RegistryListener