public class XmlApplicationPath extends ApplicationPath
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlApplicationPath.FileAttributes |
log| Constructor and Description |
|---|
XmlApplicationPath() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttribute(AttributeName name,
java.lang.String path,
HttpServletRequest request,
ServletContext app)
Returns an attribute value.
|
java.util.Iterator |
getAttributeNames(java.lang.String path,
HttpServletRequest request,
ServletContext app)
Returns an iterator over the attribute names.
|
protected XmlApplicationPath.FileAttributes |
getAttributes(java.lang.String path) |
protected Path |
getPath(java.lang.String path,
HttpServletRequest request,
ServletContext app)
Returns the underlying path.
|
Path |
getRoot()
Returns the root path.
|
java.lang.String[] |
list(java.lang.String path,
HttpServletRequest request,
ServletContext app)
Returns a list of the files in the directory.
|
boolean |
remove(java.lang.String path,
HttpServletRequest request,
ServletContext app)
Deletes the file
|
boolean |
removeAttribute(AttributeName name,
java.lang.String path,
HttpServletRequest request,
ServletContext app)
Removes an attribute value.
|
protected void |
removeAttributes(java.lang.String path) |
boolean |
setAttribute(AttributeName name,
java.lang.String value,
java.lang.String path,
HttpServletRequest request,
ServletContext app)
Sets an attribute value.
|
void |
setRoot(Path path)
path the root path.
|
canRead, exists, getLastModified, getLength, isDirectory, isFile, mkdir, openRead, openWrite, removeAttribute, rmdirdestroy, renamepublic void setRoot(Path path)
public Path getRoot()
public boolean remove(java.lang.String path,
HttpServletRequest request,
ServletContext app)
throws java.io.IOException
remove in class ApplicationPathpath - the requested relative pathrequest - the servlet requestapp - the servlet contextjava.io.IOExceptionpublic java.util.Iterator getAttributeNames(java.lang.String path,
HttpServletRequest request,
ServletContext app)
throws java.io.IOException
getAttributeNames in class ApplicationPathpath - the requested relative pathrequest - the servlet requestapp - the servlet contextjava.io.IOExceptionpublic java.lang.String getAttribute(AttributeName name, java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
getAttribute in class ApplicationPathname - the attribute namepath - the requested relative pathrequest - the servlet requestapp - the servlet contextjava.io.IOExceptionpublic boolean setAttribute(AttributeName name, java.lang.String value, java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
setAttribute in class ApplicationPathname - the attribute namevalue - the attribute valuepath - the requested relative pathrequest - the servlet requestapp - the servlet contextjava.io.IOExceptionpublic boolean removeAttribute(AttributeName name, java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
removeAttribute in class AbstractPathname - the attribute namepath - the requested relative pathrequest - the servlet requestapp - the servlet contextjava.io.IOExceptionprotected XmlApplicationPath.FileAttributes getAttributes(java.lang.String path)
protected void removeAttributes(java.lang.String path)
public java.lang.String[] list(java.lang.String path,
HttpServletRequest request,
ServletContext app)
throws java.io.IOException
list in class ApplicationPathpath - the requested relative pathrequest - the servlet requestapp - the servlet contextjava.io.IOExceptionprotected Path getPath(java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
getPath in class ApplicationPathjava.io.IOException