|
||||||||||
| 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 VFSRegistrycontext - the contextpublic void removeContext(VFSContext context)
VFSRegistry
removeContext in class VFSRegistrycontext - the context
public VirtualFile getFile(URI uri)
throws IOException
VFSRegistry
getFile in class VFSRegistryuri - the file's uri
IOException - for any error
protected VirtualFileHandler findHandler(VirtualFileHandler root,
String path,
boolean allowNotFound)
throws IOException
root - the rootpath - the pathallowNotFound - do we allow not found
IOException - for any error
public VirtualFile getFile(URL url)
throws IOException
VFSRegistry
getFile in class VFSRegistryurl - the file's url
IOException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||