Package org.jboss.virtual.plugins.context.vfs

Examples of org.jboss.virtual.plugins.context.vfs.AssembledDirectory.findChild()


      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


   protected URLConnection openConnection(URL u) throws IOException
   {
      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

/* 44 */     String host = u.getHost();
/* 45 */     AssembledDirectory directory = AssembledContextFactory.getInstance().find(host);
/* 46 */     if (directory == null) {
/* 47 */       throw new IOException("vfs does not exist: " + u.toString());
/*    */     }
/* 49 */     VirtualFile vf = directory.findChild(u.getPath());
/* 50 */     if (vf == null) {
/* 51 */       throw new IOException("vfs does not exist: " + u.toString());
/*    */     }
/* 53 */     return new VirtualFileURLConnection(u, vf);
/*    */   }
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.