org.ocap.hn.upnp.server
Interface UPnPManagedDeviceListener

All Superinterfaces:
EventListener

public interface UPnPManagedDeviceListener
extends EventListener

This interface represents a listener to UPnP local (server) device availability on a home network.

See Also:
UPnPClientDeviceListener

Method Summary
 void notifyDeviceAdded(UPnPManagedDevice device)
          Notifies the listener that a UPnPManagedDevice is about to be added to the home network by the local host.
 void notifyDeviceRemoved(UPnPManagedDevice device)
          Notifies the listener that a UPnPManagedDevice on the local host has been removed from the home network.
 

Method Detail

notifyDeviceAdded

void notifyDeviceAdded(UPnPManagedDevice device)
Notifies the listener that a UPnPManagedDevice is about to be added to the home network by the local host. This listener method is called in response to the UPnPManagedDevice.sendAlive() method, and prior to the device being advertised on the home network. This allows an application to prepare for the advertisement of the new device, at a point where it can modify the device prior to the advertisement taking place.

Parameters:
device - The UPnPManagedDevice that is about to be added.

notifyDeviceRemoved

void notifyDeviceRemoved(UPnPManagedDevice device)
Notifies the listener that a UPnPManagedDevice on the local host has been removed from the home network. This allows an application that is monitoring the managed devices to clean up after the device has been removed.

Parameters:
device - The UPnPManagedDevice that was removed.


Copyright © 2011. All Rights Reserved.