|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractVfsContainer
org.apache.commons.vfs.provider.AbstractFileProvider
org.inria.ns.reflex.modules.io.web.WebFileProvider
public class WebFileProvider
A file provider for the web scheme that resolves files according to the context of a Web application.
Usage : web:///path/to/resource
Each servlet that intend to use the web scheme
must invoke WebFileSystemConfigBuilder.registerWebapp(ServletContext)
for each HTTP request to serve, and in the Servlet.init(javax.servlet.ServletConfig) method.
To be more precise, the scheme is available for the same thread that registers the web application, and its descendents.
| Constructor Summary | |
|---|---|
WebFileProvider()
Create a new web provider. |
|
| Method Summary | |
|---|---|
void |
closeFileSystem(FileSystem filesystem)
Do nothing. |
FileObject |
findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI. |
Collection |
getCapabilities()
Return the capabilities of this file system. |
FileSystemConfigBuilder |
getConfigBuilder()
Return an instance of the config builder for this file system. |
| Methods inherited from class org.apache.commons.vfs.provider.AbstractFileProvider |
|---|
close, createFileSystem, freeUnusedResources, parseUri |
| Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent |
|---|
init, setContext, setLogger |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebFileProvider()
| Method Detail |
|---|
public FileObject findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
throws FileSystemException
baseFile - uri - fileSystemOptions -
FileSystemExceptionpublic FileSystemConfigBuilder getConfigBuilder()
getConfigBuilder in interface FileProvidergetConfigBuilder in class AbstractFileProviderWebFileSystemConfigBuilder.getInstance()public void closeFileSystem(FileSystem filesystem)
closeFileSystem in class AbstractFileProviderfilesystem - Not used.public Collection getCapabilities()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||