| java.lang.Object com.caucho.servlets.webdav.AbstractPath
All known Subclasses: com.caucho.servlets.webdav.ApplicationPath,
AbstractPath | abstract public class AbstractPath (Code) | | Represents a virtual filesystem.
|
Field Summary | |
final protected static Logger | log |
Method Summary | |
abstract public boolean | canRead(String path, HttpServletRequest request, ServletContext app) Returns true if the file can be read. | public void | destroy() Cleans up when no longer needed. | abstract 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. | abstract public long | getLastModified(String path, HttpServletRequest request, ServletContext app) Returns the last modified time of the named file. | abstract public long | getLength(String path, HttpServletRequest request, ServletContext app) Returns the length of the named file. | abstract public boolean | isDirectory(String path, HttpServletRequest request, ServletContext app) Returns true if the named file is a directory. | abstract public boolean | isFile(String path, HttpServletRequest request, ServletContext app) Returns true if the named file is a file. | abstract public String[] | list(String path, HttpServletRequest request, ServletContext app) Returns a list of the files in the directory. | abstract public boolean | mkdir(String path, HttpServletRequest request, ServletContext app) Creates the named directory. | abstract public InputStream | openRead(String path, HttpServletRequest request, ServletContext app) | abstract public OutputStream | openWrite(String path, HttpServletRequest request, ServletContext app) Opens an OutputStream for writing. | abstract public boolean | remove(String path, HttpServletRequest request, ServletContext app) | public boolean | removeAttribute(AttributeName name, String path, HttpServletRequest request, ServletContext app) Removes an attribute value. | public boolean | rename(String path, String destination, HttpServletRequest request, ServletContext app) Renames the file without forcing a copy. | abstract 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. |
canRead | abstract public boolean canRead(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Returns true if the file can be read.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context |
destroy | public void destroy()(Code) | | Cleans up when no longer needed.
|
exists | abstract public boolean exists(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Returns true if the file exists.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context |
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 |
getLastModified | abstract public long getLastModified(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Returns the last modified time of the named file.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context |
getLength | abstract public long getLength(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Returns the length of the named file.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context |
isDirectory | abstract public boolean isDirectory(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Returns true if the named file is a directory.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context |
isFile | abstract public boolean isFile(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Returns true if the named file is a file.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context |
mkdir | abstract public boolean mkdir(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Creates the named directory.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context true if the creation succeeded. |
remove | abstract public boolean remove(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Deletes the file
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context true if the remove succeeded. |
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 |
rename | public boolean rename(String path, String destination, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Renames the file without forcing a copy. If rename returns true,
use copy instead.
Parameters: path - the requested relative path Parameters: destination - the new name Parameters: request - the servlet request Parameters: app - the servlet context true if the remove succeeded. |
rmdir | abstract public boolean rmdir(String path, HttpServletRequest request, ServletContext app) throws IOException(Code) | | Removes the named directory.
Parameters: path - the requested relative path Parameters: request - the servlet request Parameters: app - the servlet context true if the remove succeeded. |
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 |
|
|