| java.lang.Object com.caucho.servlets.webdav.AbstractPath com.caucho.servlets.webdav.ApplicationPath
All known Subclasses: com.caucho.servlets.webdav.FilePath, com.caucho.servlets.webdav.XmlApplicationPath,
ApplicationPath | public class ApplicationPath extends AbstractPath (Code) | | Represents a virtual filesystem.
|
Method Summary | |
public boolean | canRead(String path, HttpServletRequest request, ServletContext app) Returns true if the file can be read. | public boolean | exists(String path, HttpServletRequest request, ServletContext app) Returns true if the file exists. | 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. | public long | getLastModified(String path, HttpServletRequest request, ServletContext app) Returns the last modified time of the named file. | public long | getLength(String path, HttpServletRequest request, ServletContext app) Returns the length of the named file. | protected Path | getPath(String path, HttpServletRequest request, ServletContext app) Returns the underlying path. | public boolean | isDirectory(String path, HttpServletRequest request, ServletContext app) Returns true if the named file is a directory. | public boolean | isFile(String path, HttpServletRequest request, ServletContext app) Returns true if the named file is a file. | public String[] | list(String path, HttpServletRequest request, ServletContext app) Returns a list of the files in the directory. | public boolean | mkdir(String path, HttpServletRequest request, ServletContext app) Creates the named directory. | public InputStream | openRead(String path, HttpServletRequest request, ServletContext app) | public OutputStream | openWrite(String path, HttpServletRequest request, ServletContext app) Opens an OutputStream for writing. | public boolean | remove(String path, HttpServletRequest request, ServletContext app) | public void | removeAttribute(String name, String path, HttpServletRequest request, ServletContext app) Removes an attribute value. | public boolean | rmdir(String path, HttpServletRequest request, ServletContext app) Removes the named directory. | public boolean | setAttribute(AttributeName name, String value, String path, HttpServletRequest request, ServletContext app) Sets an attribute value. |
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 |
removeAttribute | public void removeAttribute(String 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 |
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 |
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)
|
|
|