Examples of VirtualArtifactSystem


Examples of net.sourceforge.javautil.common.io.VirtualArtifactSystem

      if (url.startsWith("file:/")) {
        return url.endsWith("/") || IVirtualDirectory.class.isAssignableFrom(target) ? new SystemDirectory( url.substring(6) ) : new SystemFile( url.substring(6) );
      } else if (url.startsWith(VirtualArtifactSystem.VAS_PROTOCOL + ":")) {
        String host = url.split(":")[1];
        String path = url.substring((VirtualArtifactSystem.VAS_PROTOCOL + ":" + host + ":").length());
        VirtualArtifactSystem vas = VirtualArtifactSystem.get(host, true);
        return url.endsWith("/") ? vas.getDirectory(new SimplePath(path), true) : vas.getFile(new SimplePath(path), true);
      } else {
        return url.endsWith("/") || IVirtualDirectory.class.isAssignableFrom(target) ? new SystemDirectory(url) : new SystemFile(url);
      }
    } else if (original instanceof IVirtualArtifact) {
      String url = ((IVirtualArtifact)original).getURL().toExternalForm();
View Full Code Here

Examples of net.sourceforge.javautil.common.io.VirtualArtifactSystem

      this.classContext.cleanup();
      this.classContext = null;
    }
   
    if (this.root instanceof DirectoryRoot && !reload) {
      VirtualArtifactSystem vas = VirtualArtifactSystem.get("net.sf.javautil.web.server." + ctx.getHost().getName() + "." + getName(), false);
      if (vas != null) vas.unlink(this.root.getPath());
    }
  }
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.