Package org.ocap.hn.upnp.server

Provides UPnP server functionality, permitting management of devices and services in the local Host device.

See: Description

Package org.ocap.hn.upnp.server Description

Provides UPnP server functionality, permitting management of devices and services in the local Host device.

The UPnP Device Manager class (UPnPDeviceManager) provides the ability for an application to create devices and cause the Host device to expose them using the UPnP discovery process. Application created devices are UPnP compliant and may contain services with actions and state variables. An application uses the UPnPDeviceManager.createDevice method to create a device and passes in a UPnPManagedDevice object that contains a hierarcy of objects that represents all of the device information including service (UPnPManagedService) objects. The object hierarchy matches the UPnP device architecture definition, e.g. a device contains sub-devices, and services.

An application can set itself as an action handler by calling the UPnPManagedService.setActionHandler(UPnPActionHandler) method. The application will be notified when an action request is received for the managed service. The application will create a response and return it to the Host implementation which will send the UPnP response. Similarly, an application can set itself as a state variable handler by calling the UPnPManagedService.setHandler(UPnPManagedStateVariableHandler) method. The application will be notified when a control point subscribes to or unsubscribes from the service or has requested the value of a state variable through the QueryStateVariable action.

Copyright © 2013 CableLabs. All Rights Reserved.