Class WebdavFileSystem

java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.provider.http.HttpFileSystem
org.apache.commons.vfs2.provider.webdav.WebdavFileSystem
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.commons.vfs2.FileSystem, org.apache.commons.vfs2.provider.VfsComponent

public class WebdavFileSystem extends org.apache.commons.vfs2.provider.http.HttpFileSystem
A WebDAV file system.
Since:
2.0
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    WebdavFileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName, org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
    Constructs a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addCapabilities(Collection<org.apache.commons.vfs2.Capability> caps)
    Returns the capabilities of this file system.
    protected org.apache.commons.vfs2.FileObject
    createFile(org.apache.commons.vfs2.provider.AbstractFileName name)
    Creates a file object.
    protected org.apache.commons.httpclient.HttpClient
     
    Gets a URLStreamHandler.

    Methods inherited from class org.apache.commons.vfs2.provider.http.HttpFileSystem

    closeCommunicationLink

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

    addJunction, addListener, close, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute

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

    getContext, getLogger, setContext, setLogger

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebdavFileSystem

      protected WebdavFileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName, org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
      Constructs a new instance.
      Parameters:
      rootName - root base name
      httpClient - HttpClient instance
      fileSystemOptions - Options to build this file system.
  • Method Details

    • addCapabilities

      protected void addCapabilities(Collection<org.apache.commons.vfs2.Capability> caps)
      Returns the capabilities of this file system.
      Overrides:
      addCapabilities in class org.apache.commons.vfs2.provider.http.HttpFileSystem
      Parameters:
      caps - The Capabilities to add.
    • createFile

      protected org.apache.commons.vfs2.FileObject createFile(org.apache.commons.vfs2.provider.AbstractFileName name)
      Creates a file object. This method is called only if the requested file is not cached.
      Overrides:
      createFile in class org.apache.commons.vfs2.provider.http.HttpFileSystem
      Parameters:
      name - the FileName.
      Returns:
      The created FileObject.
    • getClient

      protected org.apache.commons.httpclient.HttpClient getClient()
      Overrides:
      getClient in class org.apache.commons.vfs2.provider.http.HttpFileSystem
    • getURLStreamHandler

      Gets a URLStreamHandler.
      Returns:
      The URLStreamHandler.