Interface UPNPDiscoveryMBean

  • All Superinterfaces:
    MBeanRegistration
    All Known Implementing Classes:
    UPNPDiscovery

    public interface UPNPDiscoveryMBean
    extends MBeanRegistration
    MBean to discover UPNP devices on the network and register the devices service as UPNPServiceMBean objects during the MBean registration. The registered UPNPServiceMBean will also be automatically unregistered when the device is leaving the network or when the UPNPDiscoveryMBean is unregistered from teh MBeans server.
    Version:
    1.0
    Author:
    SuperBonBon
    • Field Detail

      • SSDP_ALIVE_NOTIFICATION

        static final String SSDP_ALIVE_NOTIFICATION
        Notification type for devices joining the network
      • SSDP_BYEBYE_NOTIFICATION

        static final String SSDP_BYEBYE_NOTIFICATION
        Notification type for devices leaving the network
    • Method Detail

      • getSearchTargets

        Set getSearchTargets()
        The registered devices search targets
        Returns:
        a set of search targets
      • getRegisteredUPNPServiceMBeans

        ObjectName[] getRegisteredUPNPServiceMBeans​(String deviceUDN)
                                             throws MalformedObjectNameException
        Computes an array of object names of registered UPNPServiceMBeans for a given UPNP device UDN
        Parameters:
        deviceUDN - the UPNP device UDN ( unique id on the network )
        Returns:
        an array of object names or null if not matchs found for the given UDN
        Throws:
        MalformedObjectNameException - if an object name cannot be computed for an UPNPServiceMBean
      • getRegisteredUPNPServiceMBeansUDNs

        String[] getRegisteredUPNPServiceMBeansUDNs()
        The list of registered devices UDN, the returned UDN can be used with the getRegisteredUPNPServiceMBeans(String deviceUDN) method to retreive UDN bound UPNPServiceMBean object names
        Returns:
        a string array of UDN or null if no UPNP device services registered as UPNPServiceMBean