Package org.cybergarage.upnp.device

Examples of org.cybergarage.upnp.device.InvalidDescriptionException


      throws InvalidDescriptionException {
    try {
      Parser parser = UPnP.getXMLParser();
      rootNode = parser.parse(input);
      if (rootNode == null)
        throw new InvalidDescriptionException(
            Description.NOROOT_EXCEPTION);
      deviceNode = rootNode.getNode(Device.ELEM_NAME);
      if (deviceNode == null)
        throw new InvalidDescriptionException(
            Description.NOROOTDEVICE_EXCEPTION);
    } catch (ParserException e) {
      throw new InvalidDescriptionException(e);
    }

    if (initializeLoadedDescription() == false)
      return false;
View Full Code Here


      throws InvalidDescriptionException {
    try {
      Parser parser = UPnP.getXMLParser();
      rootNode = parser.parse(descString);
      if (rootNode == null)
        throw new InvalidDescriptionException(
            Description.NOROOT_EXCEPTION);
      deviceNode = rootNode.getNode(Device.ELEM_NAME);
      if (deviceNode == null)
        throw new InvalidDescriptionException(
            Description.NOROOTDEVICE_EXCEPTION);
    } catch (ParserException e) {
      throw new InvalidDescriptionException(e);
    }

    if (initializeLoadedDescription() == false)
      return false;
View Full Code Here

      throws InvalidDescriptionException {
    try {
      Parser parser = UPnP.getXMLParser();
      rootNode = parser.parse(file);
      if (rootNode == null)
        throw new InvalidDescriptionException(
            Description.NOROOT_EXCEPTION, file);
      deviceNode = rootNode.getNode(Device.ELEM_NAME);
      if (deviceNode == null)
        throw new InvalidDescriptionException(
            Description.NOROOTDEVICE_EXCEPTION, file);
    } catch (ParserException e) {
      throw new InvalidDescriptionException(e);
    }

    if (initializeLoadedDescription() == false)
      return false;
View Full Code Here

        return false;
      ServiceData data = getServiceData();
      data.setSCPDNode(scpdNode);
    }
    catch (ParserException e) {
      throw new InvalidDescriptionException(e);
    }
   
    return true;
  }
View Full Code Here

TOP

Related Classes of org.cybergarage.upnp.device.InvalidDescriptionException

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.