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,FileSystem,VfsComponent
A WebDAV file system based on HTTP4.
- Since:
- 2.5.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebdav4FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext) 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.Gets a URLStreamHandler.Methods inherited from class org.apache.commons.vfs2.provider.http4.Http4FileSystem
doCloseCommunicationLink, getHttpClient, getHttpClientContext, getInternalBaseURIMethods 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, setAttributeMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
Constructor Details
-
Webdav4FileSystem
protected Webdav4FileSystem(FileName rootName, 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-HttpClientinstancehttpClientContext-HttpClientContextinstance
-
-
Method Details
-
addCapabilities
Returns the capabilities of this file system.- Overrides:
addCapabilitiesin classHttp4FileSystem- 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 classHttp4FileSystem- Parameters:
name- the FileName.- Returns:
- The created FileObject.
- Throws:
Exception
-
getURLStreamHandler
Gets a URLStreamHandler.- Returns:
- The URLStreamHandler.
-