Class Webdav4FileProvider

java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractVfsContainer
org.apache.commons.vfs2.provider.AbstractFileProvider
org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider
org.apache.commons.vfs2.provider.http4.Http4FileProvider
org.apache.commons.vfs2.provider.webdav4.Webdav4FileProvider
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.commons.vfs2.provider.FileProvider, org.apache.commons.vfs2.provider.VfsComponent

public class Webdav4FileProvider extends org.apache.commons.vfs2.provider.http4.Http4FileProvider
A provider for WebDAV based on HTTP4.
Since:
2.5.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.commons.vfs2.UserAuthenticationData.Type[]
    Deprecated.
    Might be removed in the next major version.
    protected static final Collection<org.apache.commons.vfs2.Capability>
    The capabilities of the WebDAV provider.
    static final Collection<org.apache.commons.vfs2.Capability>
    The capabilities of the WebDAV provider.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.commons.vfs2.FileSystem
    doCreateFileSystem(org.apache.commons.vfs2.FileName name, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
    Creates a FileSystem.
    Collection<org.apache.commons.vfs2.Capability>
     
    org.apache.commons.vfs2.FileSystemConfigBuilder
     

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

    createHttpClient, createHttpClientBuilder, createHttpClientContext, createSSLContext

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

    findFile, findFile, getFileSystem

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

    addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getFileNameParser, parseUri, setFileNameParser

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

    addComponent, removeComponent

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

    getContext, getLogger, init, setContext, setLogger

    Methods inherited from class java.lang.Object

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

    • AUTHENTICATOR_TYPES

      @Deprecated public static final org.apache.commons.vfs2.UserAuthenticationData.Type[] AUTHENTICATOR_TYPES
      Deprecated.
      Might be removed in the next major version.
      The authenticator types used by the WebDAV provider.
    • DEFAULT_CAPABILITIES

      public static final Collection<org.apache.commons.vfs2.Capability> DEFAULT_CAPABILITIES
      The capabilities of the WebDAV provider.
    • capabilities

      protected static final Collection<org.apache.commons.vfs2.Capability> capabilities
      The capabilities of the WebDAV provider.
  • Constructor Details

  • Method Details

    • doCreateFileSystem

      protected org.apache.commons.vfs2.FileSystem doCreateFileSystem(org.apache.commons.vfs2.FileName name, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions) throws org.apache.commons.vfs2.FileSystemException
      Creates a FileSystem.

      If you're looking at this method and wondering how to get a FileSystemOptions object bearing the proxy host and credentials configuration through to this method so it's used for resolving a FileObject in the FileSystem, then be sure to use correct signature of the FileSystemManager resolveFile method.

      Overrides:
      doCreateFileSystem in class org.apache.commons.vfs2.provider.http4.Http4FileProvider
      Throws:
      org.apache.commons.vfs2.FileSystemException
      See Also:
      • DefaultFileSystemManager.resolveFile(FileObject, String, FileSystemOptions)
    • getCapabilities

      public Collection<org.apache.commons.vfs2.Capability> getCapabilities()
      Specified by:
      getCapabilities in interface org.apache.commons.vfs2.provider.FileProvider
      Overrides:
      getCapabilities in class org.apache.commons.vfs2.provider.http4.Http4FileProvider
    • getConfigBuilder

      public org.apache.commons.vfs2.FileSystemConfigBuilder getConfigBuilder()
      Specified by:
      getConfigBuilder in interface org.apache.commons.vfs2.provider.FileProvider
      Overrides:
      getConfigBuilder in class org.apache.commons.vfs2.provider.http4.Http4FileProvider