public class WebappDirectoryPath extends AbstractDirectoryPath
Represents a directory in the war file.
| Constructor and Description |
|---|
WebappDirectoryPath(String name,
DirectoryPath parent,
ServletContext context)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Path |
buildChild(String child)
Builds the path corresponding to the given direct child name of this directory.
|
long |
getLastUpdate()
Gets the last update date of this path.
|
String[] |
list()
Lists all the children path names of this directory.
|
getChildgetAbsolutePath, getName, getParent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAbsolutePath, getName, getParentpublic WebappDirectoryPath(String name, DirectoryPath parent, ServletContext context)
Creates a new instance.
name - the nameparent - the parentcontext - the servlet context used to create childrenprotected Path buildChild(String child) throws IOException
Builds the path corresponding to the given direct child name of this directory.
buildChild in class AbstractDirectoryPathchild - the child nameIOException - if any I/O error occurspublic String[] list() throws IOException
Lists all the children path names of this directory.
IOException - if any I/O error occurspublic long getLastUpdate()
throws IOException
Gets the last update date of this path.
IOException - if an I/O error occurs while accessing path dataCopyright © 2012-2015. All Rights Reserved.