org.jboss.virtual.plugins.context.zip
Class ZipEntryContextFactory

java.lang.Object
  extended by org.jboss.virtual.plugins.context.AbstractContextFactory
      extended by org.jboss.virtual.plugins.context.zip.ZipEntryContextFactory
All Implemented Interfaces:
VFSContextFactory

public class ZipEntryContextFactory
extends AbstractContextFactory

ContextFactory that keeps track of ZipEntryContexts

Version:
$Revision: 1.0 $
Author:
Marko Strukelj

Constructor Summary
ZipEntryContextFactory()
          ZipEntryContextFactory registers two url protocols: zip and vfszip
 
Method Summary
static ZipEntryContextFactory getInstance()
          Get a reference to ZipEntryContextFactory.
 VFSContext getVFS(URI rootURI)
          Get a VFSContext for a given URL
 VFSContext getVFS(URL rootURL)
          Create a new ZipEntryContext.
 
Methods inherited from class org.jboss.virtual.plugins.context.AbstractContextFactory
fromVFS, fromVFS, getProtocols
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipEntryContextFactory

public ZipEntryContextFactory()
ZipEntryContextFactory registers two url protocols: zip and vfszip

Method Detail

getVFS

public VFSContext getVFS(URI rootURI)
                  throws IOException
Get a VFSContext for a given URL

Parameters:
rootURI - - the URI for the root of the virtual context
Returns:
the vfs context
Throws:
IOException - - thrown if the root cannot be opened/accessed

getVFS

public VFSContext getVFS(URL rootURL)
                  throws IOException
Create a new ZipEntryContext.

Parameters:
rootURL - the root url
Returns:
new zip context
Throws:
IOException - for any error

getInstance

public static ZipEntryContextFactory getInstance()
Get a reference to ZipEntryContextFactory.



Copyright © 2009 JBoss, A division of Red Hat, Inc. All Rights Reserved.