org.jboss.virtual.plugins.context.file
Class FileSystemContextFactory

java.lang.Object
  extended by org.jboss.virtual.plugins.context.file.FileSystemContextFactory
All Implemented Interfaces:
VFSContextFactory

public class FileSystemContextFactory
extends java.lang.Object
implements VFSContextFactory

A file system context factory

Version:
$Revision: 44217 $
Author:
Scott.Stark@jboss.org, adrian@jboss.org

Constructor Summary
FileSystemContextFactory()
           
 
Method Summary
 java.lang.String[] getProtocols()
          Get the URL protocols/URI schemes this factory supports
 VFSContext getVFS(java.net.URI root)
          Obtain a vfs context for the given root uri.
 VFSContext getVFS(java.net.URL root)
          Obtain a vfs context for the given root url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemContextFactory

public FileSystemContextFactory()
Method Detail

getProtocols

public java.lang.String[] getProtocols()
Description copied from interface: VFSContextFactory
Get the URL protocols/URI schemes this factory supports

Specified by:
getProtocols in interface VFSContextFactory
Returns:
list of supported protocols.

getVFS

public VFSContext getVFS(java.net.URL root)
                  throws java.io.IOException
Description copied from interface: VFSContextFactory
Obtain a vfs context for the given root url.

Specified by:
getVFS in interface VFSContextFactory
Parameters:
root - - the URL for the root of the virtual context
Returns:
the vfs context
Throws:
java.io.IOException - - thrown if the root cannot be opened/accessed

getVFS

public VFSContext getVFS(java.net.URI root)
                  throws java.io.IOException
Description copied from interface: VFSContextFactory
Obtain a vfs context for the given root uri.

Specified by:
getVFS in interface VFSContextFactory
Parameters:
root - - the URI for the root of the virtual context
Returns:
the vfs context
Throws:
java.io.IOException - - thrown if the root cannot be opened/accessed