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,FileSystem,VfsComponent
A WebDAV file system.
- Since:
- 2.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebdavFileSystem(GenericFileName rootName, org.apache.commons.httpclient.HttpClient httpClient, FileSystemOptions fileSystemOptions) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCapabilities(Collection<Capability> caps) Returns the capabilities of this file system.protected FileObjectcreateFile(AbstractFileName name) Creates a file object.protected org.apache.commons.httpclient.HttpClientGets a URLStreamHandler.Methods inherited from class org.apache.commons.vfs2.provider.http.HttpFileSystem
closeCommunicationLinkMethods 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, setAttributeMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
Constructor Details
-
WebdavFileSystem
protected WebdavFileSystem(GenericFileName rootName, org.apache.commons.httpclient.HttpClient httpClient, FileSystemOptions fileSystemOptions) Constructs a new instance.- Parameters:
rootName- root base namehttpClient-HttpClientinstancefileSystemOptions- Options to build this file system.
-
-
Method Details
-
addCapabilities
Returns the capabilities of this file system.- Overrides:
addCapabilitiesin classHttpFileSystem- Parameters:
caps- The Capabilities to add.
-
createFile
Creates a file object. This method is called only if the requested file is not cached.- Overrides:
createFilein classHttpFileSystem- Parameters:
name- the FileName.- Returns:
- The created FileObject.
-
getClient
- Overrides:
getClientin classHttpFileSystem
-
getURLStreamHandler
Gets a URLStreamHandler.- Returns:
- The URLStreamHandler.
-