Examples of VirtualFileURLConnection


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

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

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

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

      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.getName());

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

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

      }
      if (!"vfszip".equals(url.getProtocol()))
      {
         throw new IllegalArgumentException("Only jar URL are accepted, not " + url.getProtocol());
      }
      VirtualFileURLConnection conn = (VirtualFileURLConnection) url.openConnection();
      VirtualFile vFile = conn.getContent();
     
      visit(vFile, visitor, filter);
   }
View Full Code Here

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

            }
         }
      }

      if (vfsurl == null) throw new IOException("vfsfile does not exist: " + u.toString());
      return new VirtualFileURLConnection(u, vfsurl, relative);
   }
View Full Code Here

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

      MemoryContext ctx = MemoryContextFactory.getInstance().find(host);

      if (ctx == null) throw new IOException("vfs does not exist: " + u.toString());
      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

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

      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

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

   protected URLConnection openConnection(URL u) throws IOException
   {
      String path = u.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(u, vf.getVirtualFile());
   }
View Full Code Here

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

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

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

      String host = u.getHost();
      AssembledDirectory directory = AssembledContextFactory.getInstance().find(host);
      if (directory == null) throw new IOException("vfs does not exist: " + u.toString());
      VirtualFile vf = directory.findChild(u.getPath());
      if (vf == null) throw new IOException("vfs does not exist: " + u.toString());
      return new VirtualFileURLConnection(u, vf);
   }
View Full Code Here

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

         }
      }

      if (vfsurl == null)
         throw new IOException("vfsfile does not exist: " + u.toString());
      return new VirtualFileURLConnection(u, vfsurl, relative);
   }
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.