Examples of PathNode


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

  protected void activate(final ComponentContext context) throws IOException,
      URISyntaxException {
    Bundle bundle = context.getBundleContext().getBundle();
    URL resourceDir = getClass().getResource("staticweb");
    PathNode pathNode = new BundlePathNode(bundle, resourceDir.getPath());
    logger.info("Initializing file server for {} ({})", resourceDir,
        resourceDir.getFile());

    fileServer = new FileServer(pathNode);
View Full Code Here

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

   * @return {@link PathNode}
   */
  @GET
  @Path("{path:.+}")
  public PathNode getStaticFile(@PathParam("path") String path) {
    final PathNode node = fileServer.getNode(path);
    return node;
  }
View Full Code Here

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

  }

  @GET
  public PathNode getStaticFile(@Context UriInfo uriInfo) {
    TrailingSlash.enforcePresent(uriInfo);
    final PathNode node = getNode("disco.xhtml");
    logger.debug("serving static {}", node);
    return node;
  }
View Full Code Here

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

      throws IOException, URISyntaxException {
    logger.info("Script Manager activated.");

    Bundle bundle = componentContext.getBundleContext().getBundle();
    URL resourceDir = getClass().getResource("staticweb");
    PathNode pathNode = new BundlePathNode(bundle, resourceDir.getPath());
    logger.info("Initializing file server for {} ({})", resourceDir,
        resourceDir.getFile());

    fileServer = new FileServer(pathNode);
    URL renderlet = getClass().getResource("scriptmanager-script-overview.ssp");
View Full Code Here

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

   * @return {@link PathNode}
   */
  @GET
  @Path("{path:.+}")
  public PathNode getStaticFile(@PathParam("path") String path) {
    final PathNode node = fileServer.getNode(path);
    logger.debug("Serving static {}", node);
    return node;
  }
View Full Code Here

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

    if (slashPos == -1) {
      childMap.put(subPath, new ValueNode(path+"/"+subPath, data));
    } else {
      String subPath1 = subPath.substring(0, slashPos);
      String subPath2 = subPath.substring(slashPos+1);
      PathNode directChild = childMap.get(subPath1);
      if (directChild == null) {
        directChild = new Hierarchy(path+"/"+subPath1);
        childMap.put(subPath1, directChild);
      } else {
        if (!(directChild instanceof Hierarchy)) {
View Full Code Here

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

  private LanguageService languageService;
 
  protected void activate(ComponentContext context) throws IOException, URISyntaxException {
    Bundle bundle = context.getBundleContext().getBundle();
    URL resourceDir = getClass().getResource("staticweb");
    PathNode pathNode = new BundlePathNode(bundle, resourceDir.getPath());

    fileServer = new FileServer(pathNode);

    URL template = getClass().getResource("language-list.ssp");
    renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(),
View Full Code Here

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

    return responseBuilder.build();
  }

  private byte[] createOfflineSite(String baseUri, String targetUri,
      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

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

   * @param componentContext
   */
  protected void activate(ComponentContext context) {
    Bundle bundle = context.getBundleContext().getBundle();
    URL resourceDir = getClass().getResource("staticweb");
    PathNode pathNode = new BundlePathNode(bundle, resourceDir.getPath());
    logger.debug("Initializing file server for {} ({})", resourceDir,
        resourceDir.getFile());
    fileServer = new FileServer(pathNode);
  }
View Full Code Here

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

  }

  @GET
  @Path("2/{path:.+}")
  public PathNode getYui2File(@PathParam("path") String path) {
    final PathNode node = fileServer.getNode("2/"+path);
    logger.debug("Serving static {}", node);
    return node;
  }
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.