Class Webdav4FileSystem

java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.provider.http4.Http4FileSystem
org.apache.commons.vfs2.provider.webdav4.Webdav4FileSystem
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.commons.vfs2.FileSystem, org.apache.commons.vfs2.provider.VfsComponent

public class Webdav4FileSystem extends org.apache.commons.vfs2.provider.http4.Http4FileSystem
A WebDAV file system based on HTTP4.
Since:
2.5.0
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Webdav4FileSystem(org.apache.commons.vfs2.FileName rootName, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext)
    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.
    Gets a URLStreamHandler.

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

    doCloseCommunicationLink, getHttpClient, getHttpClientContext, getInternalBaseURI

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

    addJunction, addListener, close, closeCommunicationLink, decorateFileObject, 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

    • Webdav4FileSystem

      protected Webdav4FileSystem(org.apache.commons.vfs2.FileName rootName, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext)
      Constructs a new instance.
      Parameters:
      rootName - root base name
      fileSystemOptions - file system options
      httpClient - HttpClient instance
      httpClientContext - HttpClientContext instance
  • 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.http4.Http4FileSystem
      Parameters:
      caps - The Capabilities to add.
    • createFile

      protected org.apache.commons.vfs2.FileObject createFile(org.apache.commons.vfs2.provider.AbstractFileName name) throws Exception
      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.http4.Http4FileSystem
      Parameters:
      name - the FileName.
      Returns:
      The created FileObject.
      Throws:
      Exception
    • getURLStreamHandler

      Gets a URLStreamHandler.
      Returns:
      The URLStreamHandler.