Package org.jboss.virtual.plugins.context.memory

Examples of org.jboss.virtual.plugins.context.memory.MemoryContext


public class Handler extends URLStreamHandler
{
   protected URLConnection openConnection(URL u) throws IOException
   {
      String host = u.getHost();
      MemoryContext ctx = MemoryContextFactory.getInstance().find(host);
      if (ctx == null)
         throw new IOException("vfs does not exist: " + u.toString());

      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


public class Handler extends URLStreamHandler
{
   protected URLConnection openConnection(URL u) throws IOException
   {
      String host = u.getHost();
      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

public class Handler extends URLStreamHandler
{
   protected URLConnection openConnection(URL u) throws IOException
   {
      String host = u.getHost();
      MemoryContext ctx = MemoryContextFactory.getInstance().find(host);
      if (ctx == null)
         throw new IOException("vfs does not exist: " + u.toString());

      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

public class Handler extends URLStreamHandler
{
   protected URLConnection openConnection(URL u) throws IOException
   {
      String host = u.getHost();
      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

/*    */ {
/*    */   protected URLConnection openConnection(URL u)
/*    */     throws IOException
/*    */   {
/* 45 */     String host = u.getHost();
/* 46 */     MemoryContext ctx = MemoryContextFactory.getInstance().find(host);
/* 47 */     if (ctx == null) {
/* 48 */       throw new IOException("vfs does not exist: " + u.toString());
/*    */     }
/* 50 */     VirtualFile vf = ctx.findChild(ctx.getRoot(), u.getPath()).getVirtualFile();
/* 51 */     if (vf == null) {
/* 52 */       throw new IOException("vfs does not exist: " + u.toString());
/*    */     }
/* 54 */     return new VirtualFileURLConnection(u, vf);
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.virtual.plugins.context.memory.MemoryContext

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.