Examples of XmlServerNode


Examples of de.jochenbrissier.backyard.util.xml.XmlServerNode

    log.debug("read xml: " + url.getPath());
    XMLParser xml = new XMLParser(url.getPath());

    List<XmlServerNode> nodes = xml.getServers();

    XmlServerNode serverinfo = null;

    for (XmlServerNode node : nodes) {

      if (server.matches(node.getPattern())) {
        log.info("Server  found:" + node.getName());
        serverinfo = node;
        break;
      }

    }

    if (serverinfo == null) {
      log.warn("Server not found");
      throw new ServerNotSupportedException();

    }

    log.debug("search in xml file for class");
    String classformxml = serverinfo.getModule();
    log.debug("class found: " + classformxml);

    return getModuleClass(classformxml);

  }
View Full Code Here

Examples of de.jochenbrissier.backyard.util.xml.XmlServerNode

  }

  private XmlServerNode getServerNode(String server) {
    List<XmlServerNode> nodes = xmlParser.getServers();

    XmlServerNode serverinfo = null;

    for (XmlServerNode node : nodes) {

      if (server.matches(node.getPattern())) {
        log.info("Server  found:" + node.getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.