public class WebdavFileObject extends HttpFileObject<WebdavFileSystem>
Modifier and Type | Field and Description |
---|---|
static org.apache.jackrabbit.webdav.property.DavPropertyName |
RESPONSE_CHARSET
The character set property name.
|
DEFAULT_BUFFER_SIZE
Modifier | Constructor and Description |
---|---|
protected |
WebdavFileObject(AbstractFileName name,
WebdavFileSystem fileSystem) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureMethod(org.apache.commons.httpclient.HttpMethodBase httpMethod) |
protected void |
doCreateFolder()
Creates this file as a folder.
|
protected void |
doDelete()
Deletes the file.
|
protected Map<String,Object> |
doGetAttributes()
Returns the properties of the Webdav resource.
|
protected long |
doGetContentSize()
Returns the size of the file content (in bytes).
|
protected long |
doGetLastModifiedTime()
Returns the last modified time of this file.
|
protected OutputStream |
doGetOutputStream(boolean bAppend) |
protected FileType |
doGetType()
Determines the type of this file.
|
protected boolean |
doIsWriteable()
Determines if this file can be written to.
|
protected String[] |
doListChildren()
Lists the children of the file.
|
protected FileObject[] |
doListChildrenResolved()
Lists the children of the file.
|
protected void |
doRename(FileObject newFile)
Rename the file.
|
protected void |
doSetAttribute(String attrName,
Object value)
Sets an attribute of this file.
|
protected FileContentInfoFactory |
getFileContentInfoFactory() |
protected void |
setupMethod(org.apache.commons.httpclient.HttpMethod method)
Prepares a Method object.
|
doDetach, doGetInputStream, doGetRandomAccessContent, encodePath, getFollowRedirect, getUrlCharset, getUserAgent
canRenameTo, childrenChanged, close, compareTo, copyFrom, createFile, createFolder, delete, delete, deleteAll, doAttach, doCreateFileContent, doGetCertificates, doGetInputStream, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsSymbolicLink, doRemoveAttribute, doSetExecutable, doSetLastModifiedTime, doSetReadable, doSetWritable, endOutput, exists, finalize, findFiles, findFiles, getAbstractFileSystem, getChild, getChildren, getContent, getFileOperations, getFileSystem, getInputStream, getInputStream, getName, getOutputStream, getOutputStream, getParent, getPublicURIString, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isExecutable, isFile, isFolder, isHidden, isReadable, isSameFile, isSymbolicLink, isWriteable, iterator, listFiles, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toString
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPath, getURI
forEach, spliterator
public static final org.apache.jackrabbit.webdav.property.DavPropertyName RESPONSE_CHARSET
protected WebdavFileObject(AbstractFileName name, WebdavFileSystem fileSystem)
protected void configureMethod(org.apache.commons.httpclient.HttpMethodBase httpMethod)
protected void doCreateFolder() throws Exception
doCreateFolder
in class AbstractFileObject<WebdavFileSystem>
Exception
protected void doDelete() throws Exception
doDelete
in class AbstractFileObject<WebdavFileSystem>
Exception
protected Map<String,Object> doGetAttributes() throws Exception
doGetAttributes
in class AbstractFileObject<WebdavFileSystem>
Exception
protected long doGetContentSize() throws Exception
doGetContentSize
in class HttpFileObject<WebdavFileSystem>
Exception
protected long doGetLastModifiedTime() throws Exception
doGetType()
does not return
FileType.IMAGINARY
.doGetLastModifiedTime
in class HttpFileObject<WebdavFileSystem>
Exception
protected OutputStream doGetOutputStream(boolean bAppend) throws Exception
doGetOutputStream
in class AbstractFileObject<WebdavFileSystem>
Exception
protected FileType doGetType() throws Exception
doGetType
in class HttpFileObject<WebdavFileSystem>
Exception
protected boolean doIsWriteable() throws Exception
doGetType()
does not return
FileType.IMAGINARY
.
This implementation always returns true.
doIsWriteable
in class HttpFileObject<WebdavFileSystem>
Exception
- if an error occurs.protected String[] doListChildren() throws Exception
doListChildren
in class HttpFileObject<WebdavFileSystem>
Exception
protected FileObject[] doListChildrenResolved() throws Exception
doListChildrenResolved
in class AbstractFileObject<WebdavFileSystem>
Exception
protected void doRename(FileObject newFile) throws Exception
doRename
in class AbstractFileObject<WebdavFileSystem>
Exception
protected void doSetAttribute(String attrName, Object value) throws Exception
doGetType()
does not return FileType.IMAGINARY
.doSetAttribute
in class AbstractFileObject<WebdavFileSystem>
Exception
protected FileContentInfoFactory getFileContentInfoFactory()
getFileContentInfoFactory
in class HttpFileObject<WebdavFileSystem>
protected void setupMethod(org.apache.commons.httpclient.HttpMethod method) throws FileSystemException, org.apache.commons.httpclient.URIException
setupMethod
in class HttpFileObject<WebdavFileSystem>
method
- the HttpMethod.FileSystemException
- if an error occurs encoding the uri.org.apache.commons.httpclient.URIException
- if the URI is in error.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.