Package org.wymiwyg.commons.util.dirbrowser

Examples of org.wymiwyg.commons.util.dirbrowser.MultiPathNode


        .getClassLoader().getResources("META-INF/web/application/");
    List<PathNode> nodeList = new ArrayList<PathNode>();
    while (basePathURLEnum.hasMoreElements()) {
      nodeList.add(PathNodeFactory.getPathNode(basePathURLEnum.nextElement()));
    }
    PathNode rootNode = new MultiPathNode(nodeList.toArray(new PathNode[nodeList.size()]));
    prefixHandlerMap.put("/application/", new ApplicationServerHandler(
        rootNode, "/application"));
    prefixHandlerMap.put("/put-infobit", new PutInfoBitHandler(store, identity));
    prefixHandlerMap.put("/meta/sources", new GraphHandlerAdaptor(
        new SourceGraphHandler(store)));
View Full Code Here


      String rootLinkPrefix, List<String> formatExtensions) throws IOException {
    PathNode baseNode = createFileHierarchy(baseUri, baseUri, targetUri, rootLinkPrefix,
        formatExtensions);
    PathNode allHostsNode = createFileHierarchy(Constants.ALL_HOSTS_URI_PREFIX+"/",
        baseUri,targetUri, rootLinkPrefix, formatExtensions);
    PathNode rootNode = new MultiPathNode(allHostsNode, baseNode);
    try {
      return ZipCreationUtil.createZip(rootNode);
    } catch (IOException ex) {
      throw new WebApplicationException(ex);
    }
View Full Code Here

  private void updateFileServer() {
    final Collection<PathNode> nodes = new HashSet<PathNode>(bundleNodeMap.values());
    if (extraPath != null) {
      nodes.add(new FilePathNode(extraPath));
    }
    MultiPathNode multiPathNode = new MultiPathNode(nodes.
        toArray(new PathNode[nodes.size()]));
    fileServer = new FileServer(multiPathNode);
  }
View Full Code Here

    PathNode[] nodes = new PathNode[docURLs.size()];
    try {
      for (int i = 0; i < nodes.length; i++) {
        nodes[i] = PathNodeFactory.getPathNode((URL) docURLs.get(i));
      }
      root = new MultiPathNode(nodes);
    } catch (IOException e) {
      logger.error("Creating PathNode", e);
      throw new RuntimeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.wymiwyg.commons.util.dirbrowser.MultiPathNode

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.