| java.lang.Object com.caucho.servlets.webdav.AbstractPath com.caucho.servlets.webdav.ApplicationPath com.caucho.servlets.webdav.XmlApplicationPath
XmlApplicationPath | public class XmlApplicationPath extends ApplicationPath (Code) | | Represents a virtual filesystem using xml files to store the attribute.
|
Inner Class :public static class FileAttributes | |
Method Summary | |
public String | getAttribute(AttributeName name, String path, HttpServletRequest request, ServletContext app) Returns an attribute value. | public Iterator | getAttributeNames(String path, HttpServletRequest request, ServletContext app) Returns an iterator over the attribute names. | protected FileAttributes | getAttributes(String path) | protected Path | getPath(String path, HttpServletRequest request, ServletContext app) Returns the underlying path. | public Path | getRoot() Returns the root path. | public String[] | list(String path, HttpServletRequest request, ServletContext app) Returns a list of the files in the directory. | public boolean | remove(String path, HttpServletRequest request, ServletContext app) | public boolean | removeAttribute(AttributeName name, String path, HttpServletRequest request, ServletContext app) Removes an attribute value. | protected void | removeAttributes(String path) | public boolean | setAttribute(AttributeName name, String value, String path, HttpServletRequest request, ServletContext app) Sets an attribute value. | public void | setRoot(Path path) path the root path. |
XmlApplicationPath | public XmlApplicationPath()(Code) | | |
getAttributeNames | public Iterator getAttributeNames(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Returns an iterator over the attribute names.
Each attribute name is of the type AttributeName.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context |
getAttributes | protected FileAttributes getAttributes(String path)(Code) | | |
getRoot | public Path getRoot()(Code) | | Returns the root path.
|
removeAttribute | public boolean removeAttribute(AttributeName name, String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Removes an attribute value.
Parameters: name - the attribute name Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context |
removeAttributes | protected void removeAttributes(String path)(Code) | | |
setAttribute | public boolean setAttribute(AttributeName name, String value, String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Sets an attribute value.
Parameters: name - the attribute name Parameters: value - the attribute value Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context true if the setting was successful |
setRoot | public void setRoot(Path path)(Code) | | path the root path.
|
Methods inherited from com.caucho.servlets.webdav.ApplicationPath | public boolean canRead(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean exists(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public String getAttribute(AttributeName name, String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public Iterator getAttributeNames(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public long getLastModified(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public long getLength(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) protected Path getPath(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean isDirectory(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean isFile(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public String[] list(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean mkdir(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public InputStream openRead(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public OutputStream openWrite(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean remove(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public void removeAttribute(String name, String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean rmdir(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean setAttribute(AttributeName name, String value, String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc)
|
Fields inherited from com.caucho.servlets.webdav.AbstractPath | final protected static Logger log(Code)(Java Doc)
|
Methods inherited from com.caucho.servlets.webdav.AbstractPath | abstract public boolean canRead(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public void destroy()(Code)(Java Doc) abstract public boolean exists(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public String getAttribute(AttributeName name, String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public Iterator getAttributeNames(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public long getLastModified(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public long getLength(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public boolean isDirectory(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public boolean isFile(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public String[] list(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public boolean mkdir(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public InputStream openRead(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public OutputStream openWrite(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public boolean remove(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean removeAttribute(AttributeName name, String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean rename(String path, String destination, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) abstract public boolean rmdir(String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc) public boolean setAttribute(AttributeName name, String value, String path, HttpServletRequest request, ServletContext app) throws IOException(Code)(Java Doc)
|
|
|