YAACC - UPNP Client and Server
|
Retrieves all remote device XML descriptors, parses them, creates an immutable device and service metadata graph. More...
Public Member Functions | |
RetrieveRemoteDescriptors (UpnpService upnpService, RemoteDevice rd) | |
UpnpService | getUpnpService () |
void | run () |
Protected Attributes | |
List< UDN > | errorsAlreadyLogged = new ArrayList<>() |
Retrieves all remote device XML descriptors, parses them, creates an immutable device and service metadata graph.
This implementation encapsulates all steps which are necessary to create a fully usable and populated device metadata graph of a particular UPnP device. It starts with an unhydrated and typically just discovered org.fourthline.cling.model.meta.RemoteDevice
, the only property that has to be available is its org.fourthline.cling.model.meta.RemoteDeviceIdentity
.
This protocol implementation will then retrieve the device's XML descriptor, parse it, and retrieve and parse all service descriptors until all device and service metadata has been retrieved. The fully hydrated device is then added to the org.fourthline.cling.registry.Registry
.
Any descriptor retrieval, parsing, or validation error of the metadata will abort this protocol with a warning message in the log.