|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.servlets.webdav.AbstractPath
com.caucho.servlets.webdav.ApplicationPath
com.caucho.servlets.webdav.XmlApplicationPath
public class XmlApplicationPath
Represents a virtual filesystem using xml files to store the attribute.
Nested Class Summary | |
---|---|
static class |
XmlApplicationPath.FileAttributes
|
Field Summary |
---|
Fields inherited from class com.caucho.servlets.webdav.AbstractPath |
---|
log |
Constructor Summary | |
---|---|
XmlApplicationPath()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.caucho.servlets.webdav.ApplicationPath |
---|
canRead, exists, getLastModified, getLength, isDirectory, isFile, mkdir, openRead, openWrite, removeAttribute, rmdir |
Methods inherited from class com.caucho.servlets.webdav.AbstractPath |
---|
destroy, rename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlApplicationPath()
Method Detail |
---|
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 context
java.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 context
java.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 context
java.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 context
java.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 context
java.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 context
java.io.IOException
protected Path getPath(java.lang.String path, HttpServletRequest request, ServletContext app) throws java.io.IOException
getPath
in class ApplicationPath
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |