logger.WARNING("UPnP Importer is disabled. getSCPDURL() is not available");
return null;
}
if (udn == null || udn.equals("") ) throw new IllegalArgumentException("Invalid udn paramenter");
if (serviceId == null || serviceId.equals("") ) throw new IllegalArgumentException("Invalid serviceId paramenter");
Device device= myCtrl.getDevice(udn);
if (device == null) {
logger.WARNING("getSCPDURL():: No device data available for UDN: "+udn);
return null;
}
Service service = device.getService(serviceId);
if (service == null) {
logger.WARNING("getSCPDURL():: No service data available for serviceId:"+serviceId + " of UDN " + udn);
return null;
}
String scpd = service.getSCPDURL().trim();