Package org.teleal.cling.model.types

Examples of org.teleal.cling.model.types.UDN


        String configKey = matcher.group(2);
        String value = (String) config.get(key);

        if ("udn".equals(configKey)) {
          sonosConfig.setUdn(new UDN(value));
          logger.debug("Add predefined Sonos device with UDN {}", sonosConfig.getUdn());
        } else {
          throw new ConfigurationException(configKey,
              "the given configKey '" + configKey + "' is unknown");
        }
View Full Code Here


              Pattern SONOS_UDN_PATTERN = Pattern.compile("RINCON_(\\w{17})");
              Matcher matcher = SONOS_UDN_PATTERN.matcher(sonosID);
              if(matcher.matches()){
                // Add device to the cached Configs
                SonosZonePlayer thePlayer = new SonosZonePlayer(sonosID,self);
                thePlayer.setUdn(new UDN(sonosID));

                sonosZonePlayerCache.add(thePlayer);

                //Query the network for this device
                logger.info("Querying the network for a predefined Sonos device with UDN '{}'", thePlayer.getUdn());
View Full Code Here

TOP

Related Classes of org.teleal.cling.model.types.UDN

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.