|
||||||||||
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 static java.net.URI |
canonicalize(java.net.URI uri)
Canonicalize uri. |
protected VirtualFileHandler |
findHandler(VirtualFileHandler root,
java.lang.String path,
boolean allowNotFound)
Find the handler. |
protected VFSCache |
getCache()
Get vfs cache. |
VFSContext |
getContext(java.net.URI uri)
Get the context. |
VirtualFile |
getFile(java.net.URI uri)
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 |
---|
getContext, getFile, 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 contextprotected static java.net.URI canonicalize(java.net.URI uri) throws java.io.IOException
uri
- the uri
java.io.IOException
- for any IO errorpublic VFSContext getContext(java.net.URI uri) throws java.io.IOException
VFSRegistry
getContext
in class VFSRegistry
uri
- the uri to match
java.io.IOException
- for any IO errorpublic VirtualFile getFile(java.net.URI uri) throws java.io.IOException
VFSRegistry
getFile
in class VFSRegistry
uri
- the file's uri
java.io.IOException
- for any errorprotected VirtualFileHandler findHandler(VirtualFileHandler root, java.lang.String path, boolean allowNotFound) throws java.io.IOException
root
- the rootpath
- the pathallowNotFound
- do we allow not found
java.io.IOException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |