Package org.jboss.virtual.plugins.vfs

Examples of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection


      VirtualFile vf = ctx.findChild(ctx.getRoot(), u.getPath()).getVirtualFile();
      if (vf == null)
         throw new IOException("vfs does not exist: " + u.toString());

      return new VirtualFileURLConnection(u, vf);
   }
View Full Code Here


      String path = url.getPath();
      VirtualFileHandler vf = context.getRoot().findChild(path);
      if (vf == null)
         throw new IOException(path + " was not found in Assembled VFS context " + context.getName());

      return new VirtualFileURLConnection(url, vf.getVirtualFile());
   }
View Full Code Here

      String path = url.getPath();
      VirtualFileHandler vf = context.getRoot().getChild(path);
      if (vf == null)
         throw new IOException(path + " was not found in Assembled VFS context " + context);

      return new VirtualFileURLConnection(url, vf.getVirtualFile());
   }
View Full Code Here

   @SuppressWarnings("deprecation")
   public Iterator create(URL url, ArchiveBrowser.Filter filter)
   {
      try
      {
         VirtualFileURLConnection conn = (VirtualFileURLConnection)url.openConnection();
         return new VfsArchiveBrowser(filter, conn.getContent());
      }
      catch (IOException e)
      {              
         throw new RuntimeException("Unable to browse URL: " + url, e);
      }
View Full Code Here

      }

      if (vfsurl == null)
         throw new IOException("VFS file does not exist: " + url);

      return new VirtualFileURLConnection(url, vfsurl, relative);
   }
View Full Code Here

      String urlString = u.toString();
      int index = urlString.indexOf("!/");
      String file = urlString.substring(3, index + 2); // strip out vfs
      String path = urlString.substring(index + 2);
      URL url = new URL(file);
      return new VirtualFileURLConnection(u, url, path);
   }
View Full Code Here

      VirtualFile vf = vfs.getChild(url.getPath());
      if (vf == null)
         throw new IOException("VFS does not exist: " + url);

      return new VirtualFileURLConnection(url, vf);
   }
View Full Code Here

      VirtualFile vf = directory.getChild(url.getPath());
      if (vf == null)
         throw new IOException("vfs does not exist: " + url);

      return new VirtualFileURLConnection(url, vf);
   }
View Full Code Here

      VirtualFile vf = ctx.getChild(ctx.getRoot(), u.getPath()).getVirtualFile();
      if (vf == null)
         throw new IOException("vfs does not exist: " + u.toString());

      return new VirtualFileURLConnection(u, vf);
   }
View Full Code Here

      }

      if (vfsurl == null)
         throw new IOException("vfsfile does not exist: " + u.toString());

      return new VirtualFileURLConnection(u, vfsurl, relative);
   }
View Full Code Here

TOP

Related Classes of org.jboss.virtual.plugins.vfs.VirtualFileURLConnection

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.