Class Webdav4FileObject

java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileObject<FS>
org.apache.commons.vfs2.provider.http4.Http4FileObject<Webdav4FileSystem>
org.apache.commons.vfs2.provider.webdav4.Webdav4FileObject
All Implemented Interfaces:
Closeable, AutoCloseable, Comparable<org.apache.commons.vfs2.FileObject>, Iterable<org.apache.commons.vfs2.FileObject>, org.apache.commons.vfs2.FileObject

public class Webdav4FileObject extends org.apache.commons.vfs2.provider.http4.Http4FileObject<Webdav4FileSystem>
A WebDAV file.
Since:
2.5.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.jackrabbit.webdav.property.DavPropertyName
    The character set property name.

    Fields inherited from class org.apache.commons.vfs2.provider.AbstractFileObject

    DEFAULT_BUFFER_SIZE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Webdav4FileObject(org.apache.commons.vfs2.provider.AbstractFileName name, Webdav4FileSystem fileSystem)
    Constructs a new instance.
    protected
    Webdav4FileObject(org.apache.commons.vfs2.provider.AbstractFileName name, Webdav4FileSystem fileSystem, Webdav4FileSystemConfigBuilder builder)
    Constructs a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Creates this file as a folder.
    protected void
    Deletes the file.
    protected Map<String,Object>
    Returns the properties of the Webdav resource.
    protected long
    Returns the size of the file content (in bytes).
    protected long
    Returns the last modified time of this file.
    protected OutputStream
    doGetOutputStream(boolean bAppend)
     
    protected org.apache.commons.vfs2.FileType
    Determines the type of this file.
    protected boolean
    Determines if this file can be written to.
    protected String[]
    Lists the children of the file.
    protected org.apache.commons.vfs2.FileObject[]
    Lists the children of the file.
    protected void
    doRename(org.apache.commons.vfs2.FileObject newFile)
    Rename the file.
    protected void
    doSetAttribute(String attrName, Object value)
    Sets an attribute of this file.
    protected org.apache.commons.vfs2.FileContentInfoFactory
     

    Methods inherited from class org.apache.commons.vfs2.provider.http4.Http4FileObject

    doDetach, doGetInputStream, doGetRandomAccessContent, executeHttpUriRequest, getInternalURI, getUrlCharset

    Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileObject

    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

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.commons.vfs2.FileObject

    getPath, getURI

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

    • RESPONSE_CHARSET

      public static final org.apache.jackrabbit.webdav.property.DavPropertyName RESPONSE_CHARSET
      The character set property name.
  • Constructor Details

    • Webdav4FileObject

      protected Webdav4FileObject(org.apache.commons.vfs2.provider.AbstractFileName name, Webdav4FileSystem fileSystem) throws org.apache.commons.vfs2.FileSystemException
      Constructs a new instance.
      Parameters:
      name - file name.
      fileSystem - file system.
      Throws:
      org.apache.commons.vfs2.FileSystemException - if any error occurs
    • Webdav4FileObject

      protected Webdav4FileObject(org.apache.commons.vfs2.provider.AbstractFileName name, Webdav4FileSystem fileSystem, Webdav4FileSystemConfigBuilder builder) throws org.apache.commons.vfs2.FileSystemException
      Constructs a new instance.
      Parameters:
      name - file name.
      fileSystem - file system.
      builder - builds the file system configuration.
      Throws:
      org.apache.commons.vfs2.FileSystemException - if any error occurs
  • Method Details