UPnPDevice interface.
The relationship between a root device and its embedded devices can be
deduced using the UPnPDevice.CHILDREN_UDN and
UPnPDevice.PARENT_UDN service registration properties.
The values of the UPnP property names are defined by the UPnP Forum.
All values of the UPnP properties are obtained from the device using the device's default locale.
If an application wants to query for a set of localized property values, it
has to use the method UPnPDevice.getDescriptions(String locale).
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CHILDREN_UDN
The property key that must be set for all devices containing other embedded devices. |
| public static final String | DEVICE_CATEGORY
Constant for the value of the service property |
| public static final String | FRIENDLY_NAME
Mandatory property key for a short user friendly version of the device name. |
| public static final String | ID
Property key for the Unique Device ID property. |
| public static final String | MANUFACTURER
Mandatory property key for the device manufacturer's property. |
| public static final String | MANUFACTURER_URL
Optional property key for a URL to the device manufacturers Web site. |
| public static final int | MATCH_GENERIC
Constant for the UPnP device match scale, indicating a generic match for the device. |
| public static final int | MATCH_MANUFACTURER_MODEL
Constant for the UPnP device match scale, indicating a match with the device model. |
| public static final int | MATCH_MANUFACTURER_MODEL_REVISION
Constant for the UPnP device match scale, indicating a match with the device revision. |
| public static final int | MATCH_MANUFACTURER_MODEL_REVISION_SERIAL
Constant for the UPnP device match scale, indicating a match with the device revision and the serial number. |
| public static final int | MATCH_TYPE
Constant for the UPnP device match scale, indicating a match with the device type. |
| public static final String | MODEL_DESCRIPTION
Optional (but recommended) property key for a |
| public static final String | MODEL_NAME
Mandatory property key for the device model name. |
| public static final String | MODEL_NUMBER
Optional (but recommended) property key for a |
| public static final String | MODEL_URL
Optional property key for a |
| public static final String | PARENT_UDN
The property key that must be set for all embedded devices. |
| public static final String | PRESENTATION_URL
Optional (but recommended) property key for a |
| public static final String | SERIAL_NUMBER
Optional (but recommended) property key for a |
| public static final String | TYPE
Property key for the UPnP Device Type property. |
| public static final String | UDN
Property key for the Unique Device Name (UDN) property. |
| public static final String | UPC
Optional property key for a |
| public static final String | UPNP_EXPORT
The |
| Modifier and Type | Method and Description |
|---|---|
| public Dictionary | Returns: Dictionary mapping property name Strings to property value StringsA language tag as defined by RFC 1766 and maintained by ISO
639. Examples include " locale)de", "en" or "
en-US". The default locale of the device is specified by
passing a null argument.Get a set of localized UPnP properties. |
| public UPnPIcon[] | Returns: Array of icons or null if no icons are available.A language tag as defined by RFC 1766 and maintained by ISO
639. Examples include " locale)de", "en" or "
en-US". The default locale of the device is specified by
passing a null argument.Lists all icons for this device in a given locale. |
| public UPnPService | Returns: The requested service or null if not found.The service id serviceId)Locates a specific service by its service id. |
| public UPnPService[] | Returns: Array of services ornull if no services are available.Lists all services provided by this device. |
| CHILDREN_UDN | back to summary |
|---|---|
| public static final String CHILDREN_UDN The property key that must be set for all devices containing other embedded devices.
The value is an array of UDNs for each of the device's children (
If an embedded device in turn contains embedded devices, the latter are not included in the array. The UPnP Specification does not encourage more than two levels of nesting.The property is not set if the device does not contain embedded devices.
The property is of type | |
| DEVICE_CATEGORY | back to summary |
|---|---|
| public static final String DEVICE_CATEGORY Constant for the value of the service property
| |
| FRIENDLY_NAME | back to summary |
|---|---|
| public static final String FRIENDLY_NAME Mandatory property key for a short user friendly version of the device
name. The property value holds a | |
| ID | back to summary |
|---|---|
| public static final String ID Property key for the Unique Device ID property. This property is an alias
to | |
| MANUFACTURER | back to summary |
|---|---|
| public static final String MANUFACTURER Mandatory property key for the device manufacturer's property. The property value holds a String representation of the device manufacturer's name. Value is "UPnP.device.manufacturer". | |
| MANUFACTURER_URL | back to summary |
|---|---|
| public static final String MANUFACTURER_URL Optional property key for a URL to the device manufacturers Web site. The
value of the property is a | |
| MATCH_GENERIC | back to summary |
|---|---|
| public static final int MATCH_GENERIC Constant for the UPnP device match scale, indicating a generic match for the device. Value is 1. | |
| MATCH_MANUFACTURER_MODEL | back to summary |
|---|---|
| public static final int MATCH_MANUFACTURER_MODEL Constant for the UPnP device match scale, indicating a match with the device model. Value is 7. | |
| MATCH_MANUFACTURER_MODEL_REVISION | back to summary |
|---|---|
| public static final int MATCH_MANUFACTURER_MODEL_REVISION Constant for the UPnP device match scale, indicating a match with the device revision. Value is 15. | |
| MATCH_MANUFACTURER_MODEL_REVISION_SERIAL | back to summary |
|---|---|
| public static final int MATCH_MANUFACTURER_MODEL_REVISION_SERIAL Constant for the UPnP device match scale, indicating a match with the device revision and the serial number. Value is 31. | |
| MATCH_TYPE | back to summary |
|---|---|
| public static final int MATCH_TYPE Constant for the UPnP device match scale, indicating a match with the device type. Value is 3. | |
| MODEL_DESCRIPTION | back to summary |
|---|---|
| public static final String MODEL_DESCRIPTION Optional (but recommended) property key for a | |
| MODEL_NAME | back to summary |
|---|---|
| public static final String MODEL_NAME Mandatory property key for the device model name. The property value
holds a | |
| MODEL_NUMBER | back to summary |
|---|---|
| public static final String MODEL_NUMBER Optional (but recommended) property key for a | |
| MODEL_URL | back to summary |
|---|---|
| public static final String MODEL_URL Optional property key for a | |
| PARENT_UDN | back to summary |
|---|---|
| public static final String PARENT_UDN The property key that must be set for all embedded devices. It contains the UDN of the parent device. The property is not set for root devices. The value is "UPnP.device.parentUDN". | |
| PRESENTATION_URL | back to summary |
|---|---|
| public static final String PRESENTATION_URL Optional (but recommended) property key for a | |
| SERIAL_NUMBER | back to summary |
|---|---|
| public static final String SERIAL_NUMBER Optional (but recommended) property key for a | |
| TYPE | back to summary |
|---|---|
| public static final String TYPE Property key for the UPnP Device Type property. Some standard property values are defined by the Universal Plug and Play Forum. The type string also includes a version number as defined in the UPnP specification. This property must be set. For standard devices defined by a UPnP Forum working committee, this must consist of the following components in the given order separated by colons:
To allow for backward compatibility the UPnP driver must automatically generate additional Device Type property entries for smaller versions than the current one. If for example a device announces its type as version 3, then properties for versions 2 and 1 must be automatically generated. In the case of exporting a UPnPDevice, the highest available version must be announced on the network.
Syntax Example: The value is "UPnP.device.type". | |
| UDN | back to summary |
|---|---|
| public static final String UDN Property key for the Unique Device Name (UDN) property. It is the unique
identifier of an instance of a | |
| UPC | back to summary |
|---|---|
| public static final String UPC Optional property key for a | |
| UPNP_EXPORT | back to summary |
|---|---|
| public static final String UPNP_EXPORT The The UPNP_EXPORT string is "UPnP.export". | |
| getDescriptions | back to summary |
|---|---|
| public Dictionary Get a set of localized UPnP properties. The UPnP specification allows a device to present different device properties based on the client's locale. The properties used to register the UPnPDevice service in the OSGi registry are based on the device's default locale. To obtain a localized set of the properties, an application can use this method. Not all properties might be available in all locales. This method does not substitute missing properties with their default locale versions. This method must continue to return the properties after the UPnP device has been removed from the network.
| |
| getIcons | back to summary |
|---|---|
| public UPnPIcon[] getIcons(String locale) Lists all icons for this device in a given locale. The UPnP specification allows a device to present different icons based on the client's locale.
| |
| getService | back to summary |
|---|---|
| public UPnPService getService(String serviceId) Locates a specific service by its service id.
| |
| getServices | back to summary |
|---|---|
| public UPnPService[] getServices() Lists all services provided by this device.
| |