|
||||||||||
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 |
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 |
getChild(java.lang.String path)
Get 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. |
boolean |
isNested()
Are we nested in some archive. |
boolean |
removeChild(java.lang.String name)
Remove a child |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractURLHandler |
---|
exists, getLastModified, getSize, getURL, initCacheLastModified, isHidden, openConnection, openConnection, openStream, toURI, toURL |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
checkClosed, checkParentExists, cleanup, close, decrement, delete, equals, getCertificates, getChildPathName, getChildVfsUrl, getLocalPathName, getLocalVFSContext, getName, getParent, getPathName, getRealURL, getReferences, getVFSContext, getVfsUrl, getVirtualFile, hasBeenModified, hashCode, increment, internalReplaceChild, isArchive, isTemporary, replaceChild, setPathName, setVfsUrl, simpleFindChild, structuredFindChild, toInternalVfsUrl, toString, toStringLocal, 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 boolean isNested() throws java.io.IOException
VirtualFileHandler
isNested
in interface VirtualFileHandler
java.io.IOException
- for any errorpublic 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 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 systempublic VirtualFileHandler getChild(java.lang.String path) throws java.io.IOException
VirtualFileHandler
getChild
in interface VirtualFileHandler
path
- the path
null
if not found
java.io.IOException
- for an error accessing the file systempublic boolean removeChild(java.lang.String name) throws java.io.IOException
VirtualFileHandler
removeChild
in interface VirtualFileHandler
name
- child name
java.io.IOException
- if an error occursprotected 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 |