Package org.cybergarage.upnp

Examples of org.cybergarage.upnp.Device


      if (myCtrl == null){
        logger.WARNING("UPnP Importer is disabled. getLocationURL is not available");
        return null;
      }
        if (udn == null || udn.equals(""))  throw new IllegalArgumentException("Invalid udn paramenter");
        Device device = myCtrl.getDevice(udn);
        if (device == null) {
          logger.WARNING("getLocationURL():: No device data available for UDN:"+udn);
          return null;
        }
        return device.getLocation();
    }
View Full Code Here


        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();
View Full Code Here

         if (myCtrl == null){
        logger.WARNING("UPnP Importer is disabled. resolveRelativeUrl() is not available");
        return null;
      }
       if (udn == null || udn.equals(""))  throw new IllegalArgumentException("Invalid udn paramenter");
        Device device = myCtrl.getDevice(udn);
        if (device == null) {
            logger.WARNING("resolveRelativeUrl():: No device data available for UDN: "+udn);
            return null;
        }
        return resolveRelativeLink(device,link);       
View Full Code Here

TOP

Related Classes of org.cybergarage.upnp.Device

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.