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, rmdir
destroy, rename
public 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 ApplicationPath
path
- the requested relative pathrequest
- the servlet requestapp
- the servlet contextjava.io.IOException
public java.util.Iterator getAttributeNames(java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
getAttributeNames
in class ApplicationPath
path
- the requested relative pathrequest
- the servlet requestapp
- the servlet contextjava.io.IOException
public java.lang.String getAttribute(AttributeName name, java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
getAttribute
in class ApplicationPath
name
- the attribute namepath
- the requested relative pathrequest
- the servlet requestapp
- the servlet contextjava.io.IOException
public boolean setAttribute(AttributeName name, java.lang.String value, java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
setAttribute
in class ApplicationPath
name
- the attribute namevalue
- the attribute valuepath
- the requested relative pathrequest
- the servlet requestapp
- the servlet contextjava.io.IOException
public boolean removeAttribute(AttributeName name, java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
removeAttribute
in class AbstractPath
name
- the attribute namepath
- the requested relative pathrequest
- the servlet requestapp
- the servlet contextjava.io.IOException
protected 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 ApplicationPath
path
- the requested relative pathrequest
- the servlet requestapp
- the servlet contextjava.io.IOException
protected Path getPath(java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
getPath
in class ApplicationPath
java.io.IOException