|
||||||||||
| 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,
URI uri,
String name,
List<LinkInfo> links)
Create a new LinkHandler. |
|
| Method Summary | |
|---|---|
VirtualFileHandler |
createChildHandler(String name)
Create a virtual file context |
protected VirtualFileHandler |
createLinkHandler(VirtualFileHandler parent,
String name,
URI linkURI)
|
protected void |
doClose()
The real close |
VirtualFileHandler |
findChild(String path)
Find a child |
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 |
|---|
exists, getLastModified, getSize, getURL, initCacheLastModified, isHidden, openStream, toURI, toURL |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
checkClosed, close, decrement, equals, getName, getParent, getPathName, getVFSContext, getVirtualFile, hasBeenModified, hashCode, increment, setPathName, 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,
URI uri,
String name,
List<LinkInfo> links)
throws IOException,
URISyntaxException
context - the contextparent - the parenturi - the uriname - the namelinks - the links
IOException - for an error accessing the file system
IllegalArgumentException - for a null context, url
URISyntaxException - if the uri cannot be parsed| Method Detail |
|---|
public boolean isLeaf()
VirtualFileHandler
isLeaf in interface VirtualFileHandler
public List<VirtualFileHandler> getChildren(boolean ignoreErrors)
throws IOException
VirtualFileHandler
getChildren in interface VirtualFileHandlerignoreErrors - whether to ignore errors
IOException - for an error accessing the file system
public VirtualFileHandler findChild(String path)
throws IOException
VirtualFileHandler
findChild in interface VirtualFileHandlerpath - the path
IOException - for an error accessing the file system (or the child doesn't exist)
public VirtualFileHandler createChildHandler(String name)
throws IOException
StructuredVirtualFileHandler
createChildHandler in interface StructuredVirtualFileHandlername - the name
IOException - for any error accessing the virtual file systemprotected void doClose()
AbstractVirtualFileHandler
doClose in class AbstractVirtualFileHandler
protected VirtualFileHandler createLinkHandler(VirtualFileHandler parent,
String name,
URI linkURI)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||