com.trackstudio.app.webdav
Class LocalFileSystemStorage
java.lang.Object
com.trackstudio.app.webdav.LocalFileSystemStorage
public class LocalFileSystemStorage
- extends java.lang.Object
Reference Implementation of IWebdavStorage
- Author:
- joa, re
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalFileSystemStorage
public LocalFileSystemStorage()
begin
public void begin(java.security.Principal principal,
java.util.Hashtable parameters)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkAuthentication
public void checkAuthentication()
throws java.lang.SecurityException
- Throws:
java.lang.SecurityException
commit
public void commit()
throws java.io.IOException
- Throws:
java.io.IOException
rollback
public void rollback()
throws java.io.IOException
- Throws:
java.io.IOException
objectExists
public boolean objectExists(java.lang.String uri)
throws java.io.IOException
- Throws:
java.io.IOException
isFolder
public boolean isFolder(java.lang.String uri)
throws java.io.IOException
- Throws:
java.io.IOException
isResource
public boolean isResource(java.lang.String uri)
throws java.io.IOException
- Throws:
java.io.IOException
createFolder
public void createFolder(java.lang.String uri)
throws java.io.IOException
- Throws:
java.io.IOException - if the folder cannot be created
createResource
public void createResource(java.lang.String uri)
throws java.io.IOException
- Throws:
java.io.IOException - if the resource cannot be created
setResourceContent
public void setResourceContent(java.lang.String uri,
java.io.InputStream is,
java.lang.String contentType,
java.lang.String characterEncoding)
throws java.io.IOException
- tries to save the given InputStream to the file at path "uri". content
type and charachter encoding are ignored
- Throws:
java.io.IOException
getLastModified
public java.util.Date getLastModified(java.lang.String uri)
throws java.io.IOException
- Returns:
- the lastModified Date
- Throws:
java.io.IOException
getCreationDate
public java.util.Date getCreationDate(java.lang.String uri)
throws java.io.IOException
- Returns:
- the lastModified date of the file, java.io.file does not support
a creation date
- Throws:
java.io.IOException
getChildrenNames
public java.lang.String[] getChildrenNames(java.lang.String uri)
throws java.io.IOException
- Returns:
- a (possibly empty) list of children, or
null if
the uri points to a file
- Throws:
java.io.IOException
getResourceContent
public java.io.InputStream getResourceContent(java.lang.String uri)
throws java.io.IOException
- Returns:
- an input stream to the specified resource
- Throws:
java.io.IOException
getResourceLength
public long getResourceLength(java.lang.String uri)
throws java.io.IOException
- Returns:
- the size of the file
- Throws:
java.io.IOException
removeObject
public void removeObject(java.lang.String uri)
throws java.io.IOException
- Throws:
java.io.IOException - if the deletion failed
Copyright © 2002-2009 TrackStudio, Ltd. All Rights Reserved.