|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.virtual.plugins.context.AbstractVirtualFileHandler
org.jboss.virtual.plugins.context.AbstractURLHandler
org.jboss.virtual.plugins.context.file.LinkHandler
public class LinkHandler
A handler for link directories.
Field Summary |
---|
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
cachedLastModified, log, vfsUrl |
Constructor Summary | |
---|---|
LinkHandler(FileSystemContext context,
VirtualFileHandler parent,
java.net.URI uri,
java.lang.String name,
java.util.List<LinkInfo> links)
Create a new LinkHandler. |
Method Summary | |
---|---|
VirtualFileHandler |
createChildHandler(java.lang.String name)
Create a virtual file context |
protected VirtualFileHandler |
createLinkHandler(VirtualFileHandler parent,
java.lang.String name,
java.net.URI linkURI)
|
protected void |
doClose()
The real close |
VirtualFileHandler |
findChild(java.lang.String path)
Find a child |
java.util.List<VirtualFileHandler> |
getChildren(boolean ignoreErrors)
Get the children |
boolean |
isLeaf()
Whether it is a simple leaf of the VFS, i.e. |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractURLHandler |
---|
getLastModified, getSize, getURL, initCacheLastModified, isHidden, openStream, toURI, toURL |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
checkClosed, close, equals, getName, getParent, getPathName, getVFSContext, getVirtualFile, hasBeenModified, hashCode, simpleFindChild, structuredFindChild, toString, toVfsUrl |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkHandler(FileSystemContext context, VirtualFileHandler parent, java.net.URI uri, java.lang.String name, java.util.List<LinkInfo> links) throws java.io.IOException, java.net.URISyntaxException
context
- the contextparent
- the parenturi
- the uriname
- the namelinks
- the links
java.io.IOException
- for an error accessing the file system
java.lang.IllegalArgumentException
- for a null context, url
java.net.URISyntaxException
- if the uri cannot be parsedMethod Detail |
---|
public boolean isLeaf()
VirtualFileHandler
isLeaf
in interface VirtualFileHandler
public java.util.List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws java.io.IOException
VirtualFileHandler
getChildren
in interface VirtualFileHandler
ignoreErrors
- whether to ignore errors
java.io.IOException
- for an error accessing the file systempublic VirtualFileHandler findChild(java.lang.String path) throws java.io.IOException
VirtualFileHandler
findChild
in interface VirtualFileHandler
path
- the path
java.io.IOException
- for an error accessing the file system (or the child doesn't exist)public VirtualFileHandler createChildHandler(java.lang.String name) throws java.io.IOException
StructuredVirtualFileHandler
createChildHandler
in interface StructuredVirtualFileHandler
name
- the name
java.io.IOException
- for any error accessing the virtual file systemprotected void doClose()
AbstractVirtualFileHandler
doClose
in class AbstractVirtualFileHandler
protected VirtualFileHandler createLinkHandler(VirtualFileHandler parent, java.lang.String name, java.net.URI linkURI) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |