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
A WebDAV file system based on HTTP4.
- Since:
- 2.5.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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 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.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
-
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 namefileSystemOptions
- file system optionshttpClient
-HttpClient
instancehttpClientContext
-HttpClientContext
instance
-
-
Method Details
-
addCapabilities
Returns the capabilities of this file system.- Overrides:
addCapabilities
in classorg.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 classorg.apache.commons.vfs2.provider.http4.Http4FileSystem
- Parameters:
name
- the FileName.- Returns:
- The created FileObject.
- Throws:
Exception
-
getURLStreamHandler
Gets a URLStreamHandler.- Returns:
- The URLStreamHandler.
-