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 Summary
Fields inherited from class org.openhab.core.config.discovery.addon.BaseAddonFinder
addonCandidates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
beforeShutdown
(@Nullable org.jupnp.registry.Registry registry) void
The framework calls this method to scan through the candidate list ofAddonInfo
and return a subset of those that it suggests to be installed.void
localDeviceAdded
(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.LocalDevice localDevice) void
localDeviceRemoved
(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.LocalDevice localDevice) void
remoteDeviceAdded
(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice) void
remoteDeviceDiscoveryFailed
(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice, @Nullable Exception exception) void
remoteDeviceDiscoveryStarted
(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice) void
remoteDeviceRemoved
(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice) void
remoteDeviceUpdated
(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice) Methods inherited from class org.openhab.core.config.discovery.addon.BaseAddonFinder
propertyMatches, setAddonCandidates, unsetAddonCandidates
-
Field Details
-
SERVICE_TYPE
- See Also:
-
SERVICE_NAME
- See Also:
-
-
Constructor Details
-
UpnpAddonFinder
public UpnpAddonFinder(org.jupnp.UpnpService upnpService)
-
-
Method Details
-
deactivate
public void deactivate() -
getSuggestedAddons
Description copied from interface:AddonFinder
The framework calls this method to scan through the candidate list ofAddonInfo
and return a subset of those that it suggests to be installed.- Specified by:
getSuggestedAddons
in interfaceAddonFinder
-
getServiceName
- Specified by:
getServiceName
in classBaseAddonFinder
-
afterShutdown
public void afterShutdown()- Specified by:
afterShutdown
in interfaceorg.jupnp.registry.RegistryListener
-
beforeShutdown
public void beforeShutdown(@Nullable org.jupnp.registry.Registry registry) - Specified by:
beforeShutdown
in interfaceorg.jupnp.registry.RegistryListener
-
localDeviceAdded
public void localDeviceAdded(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.LocalDevice localDevice) - Specified by:
localDeviceAdded
in interfaceorg.jupnp.registry.RegistryListener
-
localDeviceRemoved
public void localDeviceRemoved(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.LocalDevice localDevice) - Specified by:
localDeviceRemoved
in interfaceorg.jupnp.registry.RegistryListener
-
remoteDeviceAdded
public void remoteDeviceAdded(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice) - Specified by:
remoteDeviceAdded
in interfaceorg.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 interfaceorg.jupnp.registry.RegistryListener
-
remoteDeviceDiscoveryStarted
public void remoteDeviceDiscoveryStarted(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice) - Specified by:
remoteDeviceDiscoveryStarted
in interfaceorg.jupnp.registry.RegistryListener
-
remoteDeviceRemoved
public void remoteDeviceRemoved(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice) - Specified by:
remoteDeviceRemoved
in interfaceorg.jupnp.registry.RegistryListener
-
remoteDeviceUpdated
public void remoteDeviceUpdated(@Nullable org.jupnp.registry.Registry registry, @Nullable org.jupnp.model.meta.RemoteDevice remoteDevice) - Specified by:
remoteDeviceUpdated
in interfaceorg.jupnp.registry.RegistryListener
-