public class Webdav4FileObject extends Http4FileObject<Webdav4FileSystem>
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 |
Webdav4FileObject(AbstractFileName name,
Webdav4FileSystem fileSystem) |
protected |
Webdav4FileObject(AbstractFileName name,
Webdav4FileSystem fileSystem,
Webdav4FileSystemConfigBuilder builder) |
Modifier and Type | Method and Description |
---|---|
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() |
doDetach, doGetInputStream, doGetRandomAccessContent, executeHttpUriRequest, getInternalURI, getUrlCharset
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 Webdav4FileObject(AbstractFileName name, Webdav4FileSystem fileSystem) throws FileSystemException
FileSystemException
protected Webdav4FileObject(AbstractFileName name, Webdav4FileSystem fileSystem, Webdav4FileSystemConfigBuilder builder) throws FileSystemException
FileSystemException
protected void doCreateFolder() throws Exception
doCreateFolder
in class AbstractFileObject<Webdav4FileSystem>
Exception
protected void doDelete() throws Exception
doDelete
in class AbstractFileObject<Webdav4FileSystem>
Exception
protected Map<String,Object> doGetAttributes() throws Exception
doGetAttributes
in class AbstractFileObject<Webdav4FileSystem>
Exception
protected long doGetContentSize() throws Exception
doGetContentSize
in class Http4FileObject<Webdav4FileSystem>
Exception
protected long doGetLastModifiedTime() throws Exception
doGetType()
does not return
FileType.IMAGINARY
.doGetLastModifiedTime
in class Http4FileObject<Webdav4FileSystem>
Exception
protected OutputStream doGetOutputStream(boolean bAppend) throws Exception
doGetOutputStream
in class AbstractFileObject<Webdav4FileSystem>
Exception
protected FileType doGetType() throws Exception
doGetType
in class Http4FileObject<Webdav4FileSystem>
Exception
protected boolean doIsWriteable() throws Exception
doGetType()
does not return
FileType.IMAGINARY
.
This implementation always returns true.
doIsWriteable
in class Http4FileObject<Webdav4FileSystem>
Exception
- if an error occurs.protected String[] doListChildren() throws Exception
doListChildren
in class Http4FileObject<Webdav4FileSystem>
Exception
protected FileObject[] doListChildrenResolved() throws Exception
doListChildrenResolved
in class AbstractFileObject<Webdav4FileSystem>
Exception
protected void doRename(FileObject newFile) throws Exception
doRename
in class AbstractFileObject<Webdav4FileSystem>
Exception
protected void doSetAttribute(String attrName, Object value) throws Exception
doGetType()
does not return FileType.IMAGINARY
.doSetAttribute
in class AbstractFileObject<Webdav4FileSystem>
Exception
protected FileContentInfoFactory getFileContentInfoFactory()
getFileContentInfoFactory
in class Http4FileObject<Webdav4FileSystem>
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.