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
A WebDAV file system.
- Since:
- 2.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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 TypeMethodDescriptionprotected 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
-
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 namehttpClient
-HttpClient
instancefileSystemOptions
- Options to build this file system.
-
-
Method Details
-
addCapabilities
Returns the capabilities of this file system.- Overrides:
addCapabilities
in classorg.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 classorg.apache.commons.vfs2.provider.http.HttpFileSystem
- Parameters:
name
- the FileName.- Returns:
- The created FileObject.
-
getClient
- Overrides:
getClient
in classorg.apache.commons.vfs2.provider.http.HttpFileSystem
-
getURLStreamHandler
Gets a URLStreamHandler.- Returns:
- The URLStreamHandler.
-