|
||||||||||
| 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 |
|---|
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,
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 parsed| Method 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 VirtualFileHandlerignoreErrors - whether to ignore errors
java.io.IOException - for an error accessing the file system
public VirtualFileHandler findChild(java.lang.String path)
throws java.io.IOException
VirtualFileHandler
findChild in interface VirtualFileHandlerpath - 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 StructuredVirtualFileHandlername - 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 | |||||||||