org.jboss.virtual.spi
Interface VFSContextFactory

All Known Implementing Classes:
FileSystemContextFactory, JarContextFactory

public interface VFSContextFactory

The entry point to obtaining a VFSContext for a given URL/URI root mount point

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

Method Summary
 java.lang.String[] getProtocols()
          Get the URL protocols/URI schemes this factory supports
 VFSContext getVFS(java.net.URI rootURI)
          Obtain a vfs context for the given root uri.
 VFSContext getVFS(java.net.URL rootURL)
          Obtain a vfs context for the given root url.
 

Method Detail

getProtocols

java.lang.String[] getProtocols()
Get the URL protocols/URI schemes this factory supports

Returns:
list of supported protocols.

getVFS

VFSContext getVFS(java.net.URL rootURL)
                  throws java.io.IOException
Obtain a vfs context for the given root url.

Parameters:
rootURL - - 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

VFSContext getVFS(java.net.URI rootURI)
                  throws java.io.IOException
Obtain a vfs context for the given root uri.

Parameters:
rootURI - - 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