|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.virtual.spi.registry.VFSRegistry
org.jboss.virtual.plugins.registry.DefaultVFSRegistry
public class DefaultVFSRegistry
Default vfs registry.
Constructor Summary | |
---|---|
DefaultVFSRegistry()
|
Method Summary | |
---|---|
void |
addContext(VFSContext context)
Add new vfs context. |
protected VirtualFileHandler |
findHandler(VirtualFileHandler root,
String path,
boolean allowNotFound)
Find the handler. |
protected VFSCache |
getCache()
Get vfs cache. |
VirtualFile |
getFile(URI uri)
Get the file. |
VirtualFile |
getFile(URL url)
Get the file. |
protected boolean |
isCacheable(VFSContext context)
Is the vfs context cacheable. |
void |
removeContext(VFSContext context)
Remove the context. |
Methods inherited from class org.jboss.virtual.spi.registry.VFSRegistry |
---|
getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultVFSRegistry()
Method Detail |
---|
protected VFSCache getCache()
protected boolean isCacheable(VFSContext context)
context
- the vfs context
public void addContext(VFSContext context)
VFSRegistry
addContext
in class VFSRegistry
context
- the contextpublic void removeContext(VFSContext context)
VFSRegistry
removeContext
in class VFSRegistry
context
- the contextpublic VirtualFile getFile(URI uri) throws IOException
VFSRegistry
getFile
in class VFSRegistry
uri
- the file's uri
IOException
- for any errorprotected VirtualFileHandler findHandler(VirtualFileHandler root, String path, boolean allowNotFound) throws IOException
root
- the rootpath
- the pathallowNotFound
- do we allow not found
IOException
- for any errorpublic VirtualFile getFile(URL url) throws IOException
VFSRegistry
getFile
in class VFSRegistry
url
- the file's url
IOException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |