|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.upnp.basedriver.importer.core.upnp.UPnPDeviceImpl
public class UPnPDeviceImpl
Field Summary |
---|
Fields inherited from interface org.osgi.service.upnp.UPnPDevice |
---|
CHILDREN_UDN, DEVICE_CATEGORY, FRIENDLY_NAME, ID, MANUFACTURER, MANUFACTURER_URL, MATCH_GENERIC, MATCH_MANUFACTURER_MODEL, MATCH_MANUFACTURER_MODEL_REVISION, MATCH_MANUFACTURER_MODEL_REVISION_SERIAL, MATCH_TYPE, MODEL_DESCRIPTION, MODEL_NAME, MODEL_NUMBER, MODEL_URL, PARENT_UDN, PRESENTATION_URL, SERIAL_NUMBER, TYPE, UDN, UPC, UPNP_EXPORT |
Constructor Summary | |
---|---|
UPnPDeviceImpl(org.cybergarage.upnp.Device dev,
BundleContext context)
|
Method Summary | |
---|---|
boolean |
existServiceType(String serviceType)
|
Dictionary |
getDescriptions(String locale)
Get a set of localized UPnP properties. |
UPnPIcon[] |
getIcons(String locale)
Lists all icons for this device in a given locale. |
UPnPService |
getService(String serviceId)
Locates a specific service by its service id. |
UPnPService[] |
getServices()
Lists all services provided by this device. |
void |
setProperty(String property,
Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UPnPDeviceImpl(org.cybergarage.upnp.Device dev, BundleContext context)
dev
- Device the cyberLink Device used to rappresent the real UPnP
DeviceMethod Detail |
---|
public UPnPService getService(String serviceId)
UPnPDevice
getService
in interface UPnPDevice
serviceId
- The service id
public UPnPService[] getServices()
UPnPDevice
getServices
in interface UPnPDevice
null
if no services are
available.public UPnPIcon[] getIcons(String locale)
UPnPDevice
getIcons
in interface UPnPDevice
locale
- A language tag as defined by RFC 1766 and maintained by ISO
639. Examples include "de
", "en
" or "
en-US
". The default locale of the device is specified
by passing a null
argument.
public Dictionary getDescriptions(String locale)
UPnPDevice
Not all properties might be available in all locales. This method does not substitute missing properties with their default locale versions.
getDescriptions
in interface UPnPDevice
locale
- A language tag as defined by RFC 1766 and maintained by ISO
639. Examples include "de
", "en
" or "
en-US
". The default locale of the device is specified
by passing a null
argument.
public boolean existServiceType(String serviceType)
serviceType
-
public void setProperty(String property, Object obj)
property
- obj
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |