Class Overview
Defines a DialDevice as per its DIAL device description.
This class provides a helper method to get an object from the parsing of the dd.xml file
eg:
<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:r="urn:restful-tv-org:schemas:upnp-dd">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:tvdevice:1</deviceType>
<friendlyName>device_1</friendlyName>
<manufacturer>OCast</manufacturer>
<modelName>OCast</modelName>
<UDN>uuid:c4323fee-db4b-4aa7-9039-fa4b71589e26</UDN>
</device>
</root>
Summary
Public Constructors |
|
DialDevice(String uuid, String friendlyName, String manufacturer, String modelName, URI url, URI location)
|
[Expand]
Inherited Methods |
From class
org.ocast.discovery.DiscoveredDevice
boolean
|
equals(Object o)
|
URI
|
getDialURI()
Retrieve the Dial application URL found in device tag URLBase or the one provided
to fromDeviceDescription if it comes from a header.
|
String
|
getFriendlyName()
Retrieve the device friendly name found in device tag
|
String
|
getManufacturer()
Retrieve the manufacturer found in found in device tag
|
String
|
getModelName()
Retrieve the modelName found in device tag
|
String
|
getUuid()
Retrieve the UUID found in device tag
|
int
|
hashCode()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
DialDevice
(String uuid, String friendlyName, String manufacturer, String modelName, URI url, URI location)
Public Methods
public
static
DialDevice
fromDeviceDescription
(String xml, String dialUrlHeader, URI location)
Build a DeviceDescription from an XML representation
Parameters
xml |
XML representation string |
dialUrlHeader |
Dial application URL if provided in a header |
Returns
- the resulting DeviceDescription
Throws
ParseException
| if the XML content is invalid
|
public
URI
getLocation
()