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 Object
implements VFSContextFactory

A file system context factory

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

Constructor Summary
FileSystemContextFactory()
           
 
Method Summary
 String[] getProtocols()
          Get the URL protocols/URI schemes this factory supports
 VFSContext getVFS(URI root)
          Obtain a vfs context for the given root uri.
 VFSContext getVFS(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 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(URL root)
                  throws 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:
IOException - - thrown if the root cannot be opened/accessed

getVFS

public VFSContext getVFS(URI root)
                  throws 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:
IOException - - thrown if the root cannot be opened/accessed


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